This commit is contained in:
pezcurrel 2022-11-29 19:36:43 +01:00
parent 5c3638c149
commit 2f9051c662

View file

@ -1,605 +1,519 @@
-- phpMyAdmin SQL Dump
-- version 5.0.3
-- https://www.phpmyadmin.net/
-- MariaDB dump 10.19 Distrib 10.9.4-MariaDB, for Linux (x86_64)
--
-- Host: localhost
-- Creato il: Ott 20, 2020 alle 22:29
-- Versione del server: 10.5.6-MariaDB
-- Versione PHP: 7.4.11
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
-- Host: localhost Database: mastostart
-- ------------------------------------------------------
-- Server version 10.9.4-MariaDB
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Database: `mastostart`
--
CREATE DATABASE IF NOT EXISTS `mastostart` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
USE `mastostart`;
-- --------------------------------------------------------
--
-- Struttura della tabella `Admins`
-- Table structure for table `Admins`
--
DROP TABLE IF EXISTS `Admins`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Admins` (
`ID` int(10) UNSIGNED NOT NULL,
`Username` varchar(32) COLLATE utf8mb4_unicode_ci NOT NULL,
`Email` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
`Password` varchar(256) COLLATE utf8mb4_unicode_ci NOT NULL,
`Level` varchar(16) COLLATE utf8mb4_unicode_ci NOT NULL,
`Page` smallint(5) UNSIGNED NOT NULL DEFAULT 0,
`MaxLocalities` tinyint(3) UNSIGNED DEFAULT NULL,
`MaxLanguages` tinyint(3) UNSIGNED DEFAULT NULL,
`MaxFinancing` tinyint(3) UNSIGNED DEFAULT NULL,
`MaxPolicies` tinyint(3) UNSIGNED DEFAULT NULL,
`MaxTags` tinyint(3) UNSIGNED DEFAULT NULL,
`Enabled` tinyint(1) UNSIGNED NOT NULL DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
`ID` int(10) unsigned NOT NULL AUTO_INCREMENT,
`Username` varchar(32) NOT NULL,
`Email` varchar(64) NOT NULL,
`Password` varchar(256) NOT NULL,
`Level` varchar(16) NOT NULL,
`Page` smallint(5) unsigned NOT NULL DEFAULT 0,
`MaxLocalities` tinyint(3) unsigned DEFAULT NULL,
`MaxLanguages` tinyint(3) unsigned DEFAULT NULL,
`MaxFinancing` tinyint(3) unsigned DEFAULT NULL,
`MaxPolicies` tinyint(3) unsigned DEFAULT NULL,
`MaxTags` tinyint(3) unsigned DEFAULT NULL,
`Enabled` tinyint(1) unsigned NOT NULL DEFAULT 1,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Struttura della tabella `Blacklist`
--
DROP TABLE IF EXISTS `Blacklist`;
CREATE TABLE `Blacklist` (
`ID` int(10) UNSIGNED NOT NULL,
`Domain` varchar(256) COLLATE utf8mb4_unicode_ci NOT NULL,
`CreatedAt` decimal(14,4) UNSIGNED NOT NULL,
`ModifiedAt` decimal(14,4) UNSIGNED NOT NULL,
`Severity` tinyint(3) UNSIGNED NOT NULL,
`RejectMedia` tinyint(1) UNSIGNED NOT NULL,
`RejectReports` tinyint(1) UNSIGNED NOT NULL,
`PrivateComment` varchar(4096) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`PublicComment` varchar(4096) COLLATE utf8mb4_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Struttura della tabella `Financing`
-- Table structure for table `Financing`
--
DROP TABLE IF EXISTS `Financing`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Financing` (
`ID` int(10) UNSIGNED NOT NULL,
`Type` varchar(256) COLLATE utf8mb4_unicode_ci NOT NULL,
`AddedBy` int(10) UNSIGNED NOT NULL DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
`ID` int(10) unsigned NOT NULL AUTO_INCREMENT,
`Type` varchar(256) NOT NULL,
`AddedBy` int(10) unsigned NOT NULL DEFAULT 1,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Struttura della tabella `InstActivity`
-- Table structure for table `InstActivity`
--
DROP TABLE IF EXISTS `InstActivity`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `InstActivity` (
`InstID` bigint(20) UNSIGNED NOT NULL,
`Week` int(10) UNSIGNED NOT NULL,
`Statuses` int(10) UNSIGNED NOT NULL,
`Logins` int(10) UNSIGNED NOT NULL,
`Registrations` int(10) UNSIGNED NOT NULL,
`Pos` tinyint(3) UNSIGNED NOT NULL
`InstID` bigint(20) unsigned NOT NULL,
`Week` int(10) unsigned NOT NULL,
`Statuses` int(10) unsigned NOT NULL,
`Logins` int(10) unsigned NOT NULL,
`Registrations` int(10) unsigned NOT NULL,
`Pos` tinyint(3) unsigned NOT NULL,
KEY `InstID` (`InstID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Struttura della tabella `Instances`
--
DROP TABLE IF EXISTS `Instances`;
CREATE TABLE `Instances` (
`ID` bigint(20) UNSIGNED NOT NULL,
`FirstSeen` int(10) UNSIGNED DEFAULT NULL,
`IsMastodon` tinyint(1) UNSIGNED DEFAULT NULL,
`Dead` tinyint(1) UNSIGNED NOT NULL DEFAULT 0,
`New` tinyint(1) UNSIGNED NOT NULL,
`Good` tinyint(1) UNSIGNED NOT NULL,
`Chosen` tinyint(1) UNSIGNED NOT NULL,
`Priority` tinyint(3) UNSIGNED DEFAULT NULL,
`Visible` tinyint(1) UNSIGNED NOT NULL,
`Blacklisted` tinyint(1) UNSIGNED NOT NULL,
`URI` varchar(256) COLLATE utf8mb4_unicode_ci NOT NULL,
`Title` varchar(256) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`ShortDesc` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`LongDesc` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`OurDesc` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`OurDescEN` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`LocalityID` int(10) UNSIGNED DEFAULT NULL,
`OurLangsLock` tinyint(1) UNSIGNED NOT NULL DEFAULT 0,
`Email` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`Software` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`Version` varchar(128) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`UserCount` int(10) UNSIGNED DEFAULT NULL,
`StatusCount` bigint(20) UNSIGNED DEFAULT NULL,
`DomainCount` int(10) UNSIGNED DEFAULT NULL,
`ActiveUsersMonth` int(10) UNSIGNED DEFAULT NULL,
`ActiveUsersHalfYear` int(10) UNSIGNED DEFAULT NULL,
`Thumb` varchar(512) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`RegOpen` tinyint(1) UNSIGNED DEFAULT NULL,
`RegReqApproval` tinyint(1) UNSIGNED DEFAULT NULL,
`MaxTootChars` mediumint(8) UNSIGNED DEFAULT NULL,
`AdmAccount` varchar(128) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`AdmDisplayName` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`AdmCreatedAt` decimal(14,4) NULL DEFAULT NULL,
`AdmNote` varchar(4096) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`AdmURL` varchar(128) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`AdmAvatar` varchar(512) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`AdmHeader` varchar(512) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`LastCheckOk` tinyint(1) UNSIGNED NOT NULL DEFAULT 0,
`GuestID` int(10) UNSIGNED DEFAULT NULL,
`LastGuestEdit` int(10) UNSIGNED DEFAULT NULL,
`RPos` int(20) UNSIGNED DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Struttura della tabella `InstChecks`
-- Table structure for table `InstChecks`
--
DROP TABLE IF EXISTS `InstChecks`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `InstChecks` (
`InstID` bigint(20) UNSIGNED NOT NULL,
`Time` int(10) UNSIGNED NOT NULL,
`Status` tinyint(1) UNSIGNED NOT NULL
`InstID` bigint(20) unsigned NOT NULL,
`Time` int(10) unsigned NOT NULL,
`Status` tinyint(1) unsigned NOT NULL,
KEY `InstID` (`InstID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Struttura della tabella `InstFinancing`
-- Table structure for table `InstFinancing`
--
DROP TABLE IF EXISTS `InstFinancing`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `InstFinancing` (
`InstID` bigint(20) UNSIGNED NOT NULL,
`FinID` int(10) UNSIGNED NOT NULL,
`Pos` tinyint(3) UNSIGNED NOT NULL
`InstID` bigint(20) unsigned NOT NULL,
`FinID` int(10) unsigned NOT NULL,
`Pos` tinyint(3) unsigned NOT NULL,
KEY `InstID` (`InstID`,`FinID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Struttura della tabella `InstLangs`
-- Table structure for table `InstLangs`
--
DROP TABLE IF EXISTS `InstLangs`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `InstLangs` (
`InstID` bigint(20) UNSIGNED NOT NULL,
`LangID` int(10) UNSIGNED NOT NULL,
`Pos` tinyint(3) UNSIGNED NOT NULL
`InstID` bigint(20) unsigned NOT NULL,
`LangID` int(10) unsigned NOT NULL,
`Pos` tinyint(3) unsigned NOT NULL,
KEY `InstID` (`InstID`,`LangID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Struttura della tabella `InstOurLangs`
-- Table structure for table `InstOurLangs`
--
DROP TABLE IF EXISTS `InstOurLangs`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `InstOurLangs` (
`InstID` bigint(20) UNSIGNED NOT NULL,
`OurLangID` int(10) UNSIGNED NOT NULL,
`Pos` tinyint(3) UNSIGNED NOT NULL
`InstID` bigint(20) unsigned NOT NULL,
`OurLangID` int(10) unsigned NOT NULL,
`Pos` tinyint(3) unsigned NOT NULL,
KEY `InstID` (`InstID`,`OurLangID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Struttura della tabella `InstPolicies`
-- Table structure for table `InstPolicies`
--
DROP TABLE IF EXISTS `InstPolicies`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `InstPolicies` (
`InstID` bigint(20) UNSIGNED NOT NULL,
`PolID` int(10) UNSIGNED NOT NULL,
`Pos` tinyint(3) UNSIGNED NOT NULL
`InstID` bigint(20) unsigned NOT NULL,
`PolID` int(10) unsigned NOT NULL,
`Pos` tinyint(3) unsigned NOT NULL,
KEY `InstID` (`InstID`,`PolID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Struttura della tabella `InstTags`
-- Table structure for table `InstTags`
--
DROP TABLE IF EXISTS `InstTags`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `InstTags` (
`InstID` bigint(20) UNSIGNED NOT NULL,
`TagID` int(10) UNSIGNED NOT NULL,
`Pos` tinyint(3) UNSIGNED NOT NULL
`InstID` bigint(20) unsigned NOT NULL,
`TagID` int(10) unsigned NOT NULL,
`Pos` tinyint(3) unsigned NOT NULL,
KEY `InstID` (`InstID`,`TagID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Struttura della tabella `InstTrends`
-- Table structure for table `InstTrends`
--
DROP TABLE IF EXISTS `InstTrends`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `InstTrends` (
`InstID` bigint(20) UNSIGNED NOT NULL,
`LastDay` int(10) UNSIGNED NOT NULL,
`Name` varchar(512) COLLATE utf8mb4_unicode_ci NOT NULL,
`URL` varchar(512) COLLATE utf8mb4_unicode_ci NOT NULL,
`Pos` smallint(5) UNSIGNED NOT NULL
`InstID` bigint(20) unsigned NOT NULL,
`LastDay` int(10) unsigned NOT NULL,
`Name` varchar(512) NOT NULL,
`URL` varchar(512) NOT NULL,
`Pos` smallint(5) unsigned NOT NULL,
KEY `InstID` (`InstID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Struttura della tabella `Languages`
-- Table structure for table `Instances`
--
DROP TABLE IF EXISTS `Instances`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Instances` (
`ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`FirstSeen` int(10) unsigned DEFAULT NULL,
`IsMastodon` tinyint(1) unsigned DEFAULT NULL,
`Dead` tinyint(1) unsigned NOT NULL DEFAULT 0,
`New` tinyint(1) unsigned NOT NULL,
`Good` tinyint(1) unsigned NOT NULL,
`Chosen` tinyint(1) unsigned NOT NULL,
`Priority` tinyint(3) unsigned DEFAULT NULL,
`Visible` tinyint(1) unsigned NOT NULL,
`Noxious` tinyint(1) unsigned NOT NULL,
`URI` varchar(256) NOT NULL,
`Title` varchar(256) DEFAULT NULL,
`ShortDesc` text DEFAULT NULL,
`LongDesc` text DEFAULT NULL,
`OurDesc` text DEFAULT NULL,
`OurDescEN` text DEFAULT NULL,
`LocalityID` int(10) unsigned DEFAULT NULL,
`OurLangsLock` tinyint(1) unsigned NOT NULL DEFAULT 0,
`Email` varchar(64) DEFAULT NULL,
`Software` varchar(64) DEFAULT NULL,
`Version` varchar(128) DEFAULT NULL,
`UserCount` int(10) unsigned DEFAULT NULL,
`StatusCount` bigint(20) unsigned DEFAULT NULL,
`DomainCount` int(10) unsigned DEFAULT NULL,
`ActiveUsersMonth` int(10) unsigned DEFAULT NULL,
`ActiveUsersHalfYear` int(10) unsigned DEFAULT NULL,
`Thumb` varchar(512) DEFAULT NULL,
`RegOpen` tinyint(1) unsigned DEFAULT NULL,
`RegReqApproval` tinyint(1) unsigned DEFAULT NULL,
`MaxTootChars` mediumint(8) unsigned DEFAULT NULL,
`AdmAccount` varchar(128) DEFAULT NULL,
`AdmDisplayName` varchar(64) DEFAULT NULL,
`AdmCreatedAt` decimal(14,4) DEFAULT NULL,
`AdmNote` varchar(4096) DEFAULT NULL,
`AdmURL` varchar(128) DEFAULT NULL,
`AdmAvatar` varchar(512) DEFAULT NULL,
`AdmHeader` varchar(512) DEFAULT NULL,
`LastCheckOk` tinyint(1) unsigned NOT NULL DEFAULT 0,
`GuestID` int(10) unsigned DEFAULT NULL,
`LastGuestEdit` int(10) unsigned DEFAULT NULL,
`RPos` int(20) unsigned DEFAULT NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=3752 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `Languages`
--
DROP TABLE IF EXISTS `Languages`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Languages` (
`ID` int(11) UNSIGNED NOT NULL,
`Code` varchar(16) COLLATE utf8mb4_unicode_ci NOT NULL,
`NameOrig` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`NameCA` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`NameEN` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`NameES` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`NameFR` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`NameIT` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`AddedBy` int(10) UNSIGNED NOT NULL DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
`ID` int(11) unsigned NOT NULL AUTO_INCREMENT,
`Code` varchar(16) NOT NULL,
`NameOrig` varchar(64) DEFAULT NULL,
`NameUK` varchar(64) DEFAULT NULL,
`NameCA` varchar(64) DEFAULT NULL,
`NameEN` varchar(64) DEFAULT NULL,
`NameES` varchar(64) DEFAULT NULL,
`NameFR` varchar(64) DEFAULT NULL,
`NameGL` varchar(64) DEFAULT NULL,
`NameIT` varchar(64) DEFAULT NULL,
`AddedBy` int(10) unsigned NOT NULL DEFAULT 1,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=62 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Struttura della tabella `Localities`
-- Table structure for table `Localities`
--
DROP TABLE IF EXISTS `Localities`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Localities` (
`ID` int(10) UNSIGNED NOT NULL,
`OSMID` bigint(20) UNSIGNED NOT NULL,
`NameOrig` varchar(128) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`NameCA` varchar(128) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`NameEN` varchar(128) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`NameES` varchar(128) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`NameFR` varchar(128) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`NameIT` varchar(128) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`AddedBy` int(10) UNSIGNED NOT NULL DEFAULT 1
`ID` int(10) unsigned NOT NULL AUTO_INCREMENT,
`OSMID` bigint(20) unsigned NOT NULL,
`NameOrig` varchar(128) DEFAULT NULL,
`NameCA` varchar(128) DEFAULT NULL,
`NameEN` varchar(128) DEFAULT NULL,
`NameES` varchar(128) DEFAULT NULL,
`NameFR` varchar(128) DEFAULT NULL,
`NameGL` varchar(128) DEFAULT NULL,
`NameIT` varchar(128) DEFAULT NULL,
`AddedBy` int(10) unsigned NOT NULL DEFAULT 1,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Struttura della tabella `Notifications`
-- Table structure for table `Notifications`
--
DROP TABLE IF EXISTS `Notifications`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Notifications` (
`ID` bigint(20) UNSIGNED NOT NULL,
`Notification` varchar(15000) COLLATE utf8mb4_unicode_ci NOT NULL,
`Severity` tinyint(3) UNSIGNED NOT NULL,
`Microtime` decimal(14,4) UNSIGNED NOT NULL,
`Seen` tinyint(1) UNSIGNED NOT NULL DEFAULT 0,
`Deleted` tinyint(1) UNSIGNED NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
`ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`Notification` varchar(15000) NOT NULL,
`Severity` tinyint(3) unsigned NOT NULL,
`Microtime` decimal(14,4) unsigned NOT NULL,
`Seen` tinyint(1) unsigned NOT NULL DEFAULT 0,
`Deleted` tinyint(1) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=659 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Struttura della tabella `Platforms`
-- Table structure for table `Noxious`
--
DROP TABLE IF EXISTS `Noxious`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Noxious` (
`ID` int(10) unsigned NOT NULL AUTO_INCREMENT,
`Domain` varchar(256) NOT NULL,
`CreatedAt` decimal(14,4) unsigned NOT NULL,
`ModifiedAt` decimal(14,4) unsigned NOT NULL,
`Severity` tinyint(3) unsigned NOT NULL,
`RejectMedia` tinyint(1) unsigned NOT NULL,
`RejectReports` tinyint(1) unsigned NOT NULL,
`PrivateComment` varchar(4096) DEFAULT NULL,
`PublicComment` varchar(4096) DEFAULT NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=166 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `Platforms`
--
DROP TABLE IF EXISTS `Platforms`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Platforms` (
`ID` mediumint(8) UNSIGNED NOT NULL,
`Name` varchar(128) COLLATE utf8mb4_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
`ID` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`Name` varchar(128) NOT NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Struttura della tabella `Policies`
-- Table structure for table `Policies`
--
DROP TABLE IF EXISTS `Policies`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Policies` (
`ID` int(10) UNSIGNED NOT NULL,
`Name` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
`AddedBy` int(10) UNSIGNED NOT NULL DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
`ID` int(10) unsigned NOT NULL AUTO_INCREMENT,
`Name` varchar(64) NOT NULL,
`AddedBy` int(10) unsigned NOT NULL DEFAULT 1,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Struttura della tabella `Presets`
--
DROP TABLE IF EXISTS `Presets`;
CREATE TABLE `Presets` (
`ID` int(10) UNSIGNED NOT NULL,
`Name` varchar(256) COLLATE utf8mb4_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Struttura della tabella `PresFiltConds`
-- Table structure for table `PresFiltConds`
--
DROP TABLE IF EXISTS `PresFiltConds`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `PresFiltConds` (
`PresID` int(10) UNSIGNED NOT NULL,
`OpenPar` varchar(3) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`Field` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
`Cond` varchar(32) COLLATE utf8mb4_unicode_ci NOT NULL,
`ValueSel` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`ValueInp` varchar(256) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`ClosePar` varchar(3) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`AndOr` varchar(3) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`Pos` tinyint(3) UNSIGNED NOT NULL
`PresID` int(10) unsigned NOT NULL,
`OpenPar` varchar(3) DEFAULT NULL,
`Field` varchar(64) NOT NULL,
`Cond` varchar(32) NOT NULL,
`ValueSel` varchar(64) DEFAULT NULL,
`ValueInp` varchar(256) DEFAULT NULL,
`ClosePar` varchar(3) DEFAULT NULL,
`AndOr` varchar(3) DEFAULT NULL,
`Pos` tinyint(3) unsigned NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Struttura della tabella `PresFiltCondsAdm`
-- Table structure for table `PresFiltCondsAdm`
--
DROP TABLE IF EXISTS `PresFiltCondsAdm`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `PresFiltCondsAdm` (
`AdmID` int(10) UNSIGNED NOT NULL,
`OpenPar` varchar(3) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`Field` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
`Cond` varchar(32) COLLATE utf8mb4_unicode_ci NOT NULL,
`ValueSel` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`ValueInp` varchar(256) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`ClosePar` varchar(3) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`AndOr` varchar(3) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`Pos` tinyint(3) UNSIGNED NOT NULL
`AdmID` int(10) unsigned NOT NULL,
`OpenPar` varchar(3) DEFAULT NULL,
`Field` varchar(64) NOT NULL,
`Cond` varchar(32) NOT NULL,
`ValueSel` varchar(64) DEFAULT NULL,
`ValueInp` varchar(256) DEFAULT NULL,
`ClosePar` varchar(3) DEFAULT NULL,
`AndOr` varchar(3) DEFAULT NULL,
`Pos` tinyint(3) unsigned NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Struttura della tabella `PresOrdConds`
-- Table structure for table `PresOrdConds`
--
DROP TABLE IF EXISTS `PresOrdConds`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `PresOrdConds` (
`PresID` int(10) UNSIGNED NOT NULL,
`Field` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
`Sort` varchar(4) COLLATE utf8mb4_unicode_ci NOT NULL,
`Pos` tinyint(3) UNSIGNED NOT NULL
`PresID` int(10) unsigned NOT NULL,
`Field` varchar(64) NOT NULL,
`Sort` varchar(4) NOT NULL,
`Pos` tinyint(3) unsigned NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Struttura della tabella `PresOrdCondsAdm`
-- Table structure for table `PresOrdCondsAdm`
--
DROP TABLE IF EXISTS `PresOrdCondsAdm`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `PresOrdCondsAdm` (
`AdmID` int(10) UNSIGNED NOT NULL,
`Field` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
`Sort` varchar(4) COLLATE utf8mb4_unicode_ci NOT NULL,
`Pos` tinyint(3) UNSIGNED NOT NULL
`AdmID` int(10) unsigned NOT NULL,
`Field` varchar(64) NOT NULL,
`Sort` varchar(4) NOT NULL,
`Pos` tinyint(3) unsigned NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Struttura della tabella `StartNodes`
-- Table structure for table `Presets`
--
DROP TABLE IF EXISTS `Presets`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Presets` (
`ID` int(10) unsigned NOT NULL AUTO_INCREMENT,
`Name` varchar(256) NOT NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `StartNodes`
--
DROP TABLE IF EXISTS `StartNodes`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `StartNodes` (
`ID` smallint(5) UNSIGNED NOT NULL,
`Domain` varchar(128) COLLATE utf8mb4_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
`ID` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
`Domain` varchar(128) NOT NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Struttura della tabella `Stats`
-- Table structure for table `Stats`
--
DROP TABLE IF EXISTS `Stats`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Stats` (
`ID` mediumint(8) UNSIGNED NOT NULL,
`TotInsts` mediumint(8) UNSIGNED NOT NULL,
`GoodInsts` mediumint(8) UNSIGNED NOT NULL,
`FeatInsts` mediumint(8) UNSIGNED NOT NULL,
`TotUsers` bigint(20) UNSIGNED NOT NULL,
`Time` int(10) UNSIGNED NOT NULL
`ID` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`TotInsts` mediumint(8) unsigned NOT NULL,
`GoodInsts` mediumint(8) unsigned NOT NULL,
`FeatInsts` mediumint(8) unsigned NOT NULL,
`TotUsers` bigint(20) unsigned NOT NULL,
`Time` int(10) unsigned NOT NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Struttura della tabella `Tags`
-- Table structure for table `Tags`
--
DROP TABLE IF EXISTS `Tags`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Tags` (
`ID` int(10) UNSIGNED NOT NULL,
`Name` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
`AddedBy` int(10) UNSIGNED NOT NULL DEFAULT 1
`ID` int(10) unsigned NOT NULL AUTO_INCREMENT,
`Name` varchar(64) NOT NULL,
`AddedBy` int(10) unsigned NOT NULL DEFAULT 1,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `ZHits`
--
DROP TABLE IF EXISTS `ZHits`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ZHits` (
`UID` char(32) CHARACTER SET ascii COLLATE ascii_general_ci NOT NULL,
`URL` varchar(32) CHARACTER SET ascii COLLATE ascii_general_ci NOT NULL,
`Lang` char(2) CHARACTER SET ascii COLLATE ascii_general_ci NOT NULL,
`TS` int(10) unsigned NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Indici per le tabelle scaricate
-- Table structure for table `ZStats`
--
--
-- Indici per le tabelle `Admins`
--
ALTER TABLE `Admins`
ADD PRIMARY KEY (`ID`);
--
-- Indici per le tabelle `Blacklist`
--
ALTER TABLE `Blacklist`
ADD PRIMARY KEY (`ID`);
--
-- Indici per le tabelle `Financing`
--
ALTER TABLE `Financing`
ADD PRIMARY KEY (`ID`);
--
-- Indici per le tabelle `Instances`
--
ALTER TABLE `Instances`
ADD PRIMARY KEY (`ID`);
--
-- Indici per le tabelle `Languages`
--
ALTER TABLE `Languages`
ADD PRIMARY KEY (`ID`);
--
-- Indici per le tabelle `Localities`
--
ALTER TABLE `Localities`
ADD PRIMARY KEY (`ID`);
--
-- Indici per le tabelle `Notifications`
--
ALTER TABLE `Notifications`
ADD PRIMARY KEY (`ID`);
--
-- Indici per le tabelle `Platforms`
--
ALTER TABLE `Platforms`
ADD PRIMARY KEY (`ID`);
--
-- Indici per le tabelle `Policies`
--
ALTER TABLE `Policies`
ADD PRIMARY KEY (`ID`);
--
-- Indici per le tabelle `Presets`
--
ALTER TABLE `Presets`
ADD PRIMARY KEY (`ID`);
--
-- Indici per le tabelle `StartNodes`
--
ALTER TABLE `StartNodes`
ADD PRIMARY KEY (`ID`);
--
-- Indici per le tabelle `Stats`
--
ALTER TABLE `Stats`
ADD PRIMARY KEY (`ID`);
--
-- Indici per le tabelle `Tags`
--
ALTER TABLE `Tags`
ADD PRIMARY KEY (`ID`);
--
-- AUTO_INCREMENT per le tabelle scaricate
--
--
-- AUTO_INCREMENT per la tabella `Admins`
--
ALTER TABLE `Admins`
MODIFY `ID` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT per la tabella `Blacklist`
--
ALTER TABLE `Blacklist`
MODIFY `ID` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT per la tabella `Financing`
--
ALTER TABLE `Financing`
MODIFY `ID` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT per la tabella `Instances`
--
ALTER TABLE `Instances`
MODIFY `ID` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT per la tabella `Languages`
--
ALTER TABLE `Languages`
MODIFY `ID` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT per la tabella `Localities`
--
ALTER TABLE `Localities`
MODIFY `ID` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT per la tabella `Notifications`
--
ALTER TABLE `Notifications`
MODIFY `ID` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT per la tabella `Platforms`
--
ALTER TABLE `Platforms`
MODIFY `ID` mediumint(8) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT per la tabella `Policies`
--
ALTER TABLE `Policies`
MODIFY `ID` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT per la tabella `Presets`
--
ALTER TABLE `Presets`
MODIFY `ID` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT per la tabella `StartNodes`
--
ALTER TABLE `StartNodes`
MODIFY `ID` smallint(5) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT per la tabella `Stats`
--
ALTER TABLE `Stats`
MODIFY `ID` mediumint(8) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT per la tabella `Tags`
--
ALTER TABLE `Tags`
MODIFY `ID` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
COMMIT;
DROP TABLE IF EXISTS `ZStats`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ZStats` (
`TS` int(10) unsigned NOT NULL,
`Hits` int(10) unsigned NOT NULL,
`HitsLang` varchar(5000) NOT NULL,
`HitsPage` varchar(5000) NOT NULL,
`Visits` int(10) unsigned NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2022-11-29 19:30:57