mastostart_solo_struttura.sql 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602
  1. /*M!999999\- enable the sandbox mode */
  2. -- MariaDB dump 10.19-11.4.3-MariaDB, for Linux (x86_64)
  3. --
  4. -- Host: localhost Database: mastostart
  5. -- ------------------------------------------------------
  6. -- Server version 11.4.3-MariaDB
  7. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  8. /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  9. /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  10. /*!40101 SET NAMES utf8mb4 */;
  11. /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
  12. /*!40103 SET TIME_ZONE='+00:00' */;
  13. /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
  14. /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
  15. /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
  16. /*M!100616 SET @OLD_NOTE_VERBOSITY=@@NOTE_VERBOSITY, NOTE_VERBOSITY=0 */;
  17. --
  18. -- Table structure for table `Admins`
  19. --
  20. DROP TABLE IF EXISTS `Admins`;
  21. /*!40101 SET @saved_cs_client = @@character_set_client */;
  22. /*!40101 SET character_set_client = utf8 */;
  23. CREATE TABLE `Admins` (
  24. `ID` int(10) unsigned NOT NULL AUTO_INCREMENT,
  25. `Username` varchar(32) NOT NULL,
  26. `Email` varchar(64) NOT NULL,
  27. `Password` varchar(256) NOT NULL,
  28. `Level` varchar(16) NOT NULL,
  29. `Page` smallint(5) unsigned NOT NULL DEFAULT 0,
  30. `MaxLocalities` tinyint(3) unsigned DEFAULT NULL,
  31. `MaxLanguages` tinyint(3) unsigned DEFAULT NULL,
  32. `MaxFinancing` tinyint(3) unsigned DEFAULT NULL,
  33. `MaxPolicies` tinyint(3) unsigned DEFAULT NULL,
  34. `MaxTags` tinyint(3) unsigned DEFAULT NULL,
  35. `Enabled` tinyint(1) unsigned NOT NULL DEFAULT 1,
  36. PRIMARY KEY (`ID`)
  37. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  38. /*!40101 SET character_set_client = @saved_cs_client */;
  39. --
  40. -- Table structure for table `Financing`
  41. --
  42. DROP TABLE IF EXISTS `Financing`;
  43. /*!40101 SET @saved_cs_client = @@character_set_client */;
  44. /*!40101 SET character_set_client = utf8 */;
  45. CREATE TABLE `Financing` (
  46. `ID` int(10) unsigned NOT NULL AUTO_INCREMENT,
  47. `Type` varchar(256) NOT NULL,
  48. `AddedBy` int(10) unsigned NOT NULL DEFAULT 1,
  49. PRIMARY KEY (`ID`),
  50. KEY `AddedBy` (`AddedBy`) USING BTREE
  51. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  52. /*!40101 SET character_set_client = @saved_cs_client */;
  53. --
  54. -- Table structure for table `InstActivity`
  55. --
  56. DROP TABLE IF EXISTS `InstActivity`;
  57. /*!40101 SET @saved_cs_client = @@character_set_client */;
  58. /*!40101 SET character_set_client = utf8 */;
  59. CREATE TABLE `InstActivity` (
  60. `InstID` bigint(20) unsigned NOT NULL,
  61. `Week` int(10) unsigned NOT NULL,
  62. `Statuses` int(10) unsigned NOT NULL,
  63. `Logins` int(10) unsigned NOT NULL,
  64. `Registrations` int(10) unsigned NOT NULL,
  65. `Pos` tinyint(3) unsigned NOT NULL,
  66. KEY `InstID` (`InstID`)
  67. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  68. /*!40101 SET character_set_client = @saved_cs_client */;
  69. --
  70. -- Table structure for table `InstBlocks`
  71. --
  72. DROP TABLE IF EXISTS `InstBlocks`;
  73. /*!40101 SET @saved_cs_client = @@character_set_client */;
  74. /*!40101 SET character_set_client = utf8 */;
  75. CREATE TABLE `InstBlocks` (
  76. `InstID` bigint(20) unsigned NOT NULL,
  77. `Domain` varchar(256) NOT NULL,
  78. `Severity` varchar(32) NOT NULL,
  79. `Comment` varchar(8192) DEFAULT NULL,
  80. KEY `InstID` (`InstID`),
  81. KEY `Domain` (`Domain`)
  82. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  83. /*!40101 SET character_set_client = @saved_cs_client */;
  84. --
  85. -- Table structure for table `InstChecks`
  86. --
  87. DROP TABLE IF EXISTS `InstChecks`;
  88. /*!40101 SET @saved_cs_client = @@character_set_client */;
  89. /*!40101 SET character_set_client = utf8 */;
  90. CREATE TABLE `InstChecks` (
  91. `InstID` bigint(20) unsigned NOT NULL,
  92. `Time` int(10) unsigned NOT NULL,
  93. `Status` tinyint(1) unsigned NOT NULL,
  94. KEY `InstID` (`InstID`)
  95. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  96. /*!40101 SET character_set_client = @saved_cs_client */;
  97. --
  98. -- Table structure for table `InstFinancing`
  99. --
  100. DROP TABLE IF EXISTS `InstFinancing`;
  101. /*!40101 SET @saved_cs_client = @@character_set_client */;
  102. /*!40101 SET character_set_client = utf8 */;
  103. CREATE TABLE `InstFinancing` (
  104. `InstID` bigint(20) unsigned NOT NULL,
  105. `FinID` int(10) unsigned NOT NULL,
  106. `Pos` tinyint(3) unsigned NOT NULL,
  107. KEY `InstID` (`InstID`) USING BTREE,
  108. KEY `FinID` (`FinID`) USING BTREE
  109. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  110. /*!40101 SET character_set_client = @saved_cs_client */;
  111. --
  112. -- Table structure for table `InstLangs`
  113. --
  114. DROP TABLE IF EXISTS `InstLangs`;
  115. /*!40101 SET @saved_cs_client = @@character_set_client */;
  116. /*!40101 SET character_set_client = utf8 */;
  117. CREATE TABLE `InstLangs` (
  118. `InstID` bigint(20) unsigned NOT NULL,
  119. `LangID` int(10) unsigned NOT NULL,
  120. `Pos` tinyint(3) unsigned NOT NULL,
  121. KEY `InstID` (`InstID`) USING BTREE,
  122. KEY `LangID` (`LangID`) USING BTREE
  123. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  124. /*!40101 SET character_set_client = @saved_cs_client */;
  125. --
  126. -- Table structure for table `InstOurLangs`
  127. --
  128. DROP TABLE IF EXISTS `InstOurLangs`;
  129. /*!40101 SET @saved_cs_client = @@character_set_client */;
  130. /*!40101 SET character_set_client = utf8 */;
  131. CREATE TABLE `InstOurLangs` (
  132. `InstID` bigint(20) unsigned NOT NULL,
  133. `OurLangID` int(10) unsigned NOT NULL,
  134. `Pos` tinyint(3) unsigned NOT NULL,
  135. KEY `InstID` (`InstID`) USING BTREE,
  136. KEY `OurLangID` (`OurLangID`) USING BTREE
  137. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  138. /*!40101 SET character_set_client = @saved_cs_client */;
  139. --
  140. -- Table structure for table `InstPolicies`
  141. --
  142. DROP TABLE IF EXISTS `InstPolicies`;
  143. /*!40101 SET @saved_cs_client = @@character_set_client */;
  144. /*!40101 SET character_set_client = utf8 */;
  145. CREATE TABLE `InstPolicies` (
  146. `InstID` bigint(20) unsigned NOT NULL,
  147. `PolID` int(10) unsigned NOT NULL,
  148. `Pos` tinyint(3) unsigned NOT NULL,
  149. KEY `InstID` (`InstID`) USING BTREE,
  150. KEY `PolID` (`PolID`) USING BTREE
  151. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  152. /*!40101 SET character_set_client = @saved_cs_client */;
  153. --
  154. -- Table structure for table `InstRules`
  155. --
  156. DROP TABLE IF EXISTS `InstRules`;
  157. /*!40101 SET @saved_cs_client = @@character_set_client */;
  158. /*!40101 SET character_set_client = utf8 */;
  159. CREATE TABLE `InstRules` (
  160. `InstID` bigint(20) unsigned NOT NULL,
  161. `Text` varchar(8192) NOT NULL,
  162. KEY `InstID` (`InstID`)
  163. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  164. /*!40101 SET character_set_client = @saved_cs_client */;
  165. --
  166. -- Table structure for table `InstTags`
  167. --
  168. DROP TABLE IF EXISTS `InstTags`;
  169. /*!40101 SET @saved_cs_client = @@character_set_client */;
  170. /*!40101 SET character_set_client = utf8 */;
  171. CREATE TABLE `InstTags` (
  172. `InstID` bigint(20) unsigned NOT NULL,
  173. `TagID` int(10) unsigned NOT NULL,
  174. `Pos` tinyint(3) unsigned NOT NULL,
  175. KEY `InstID` (`InstID`) USING BTREE,
  176. KEY `TagID` (`TagID`) USING BTREE
  177. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  178. /*!40101 SET character_set_client = @saved_cs_client */;
  179. --
  180. -- Table structure for table `InstTrends`
  181. --
  182. DROP TABLE IF EXISTS `InstTrends`;
  183. /*!40101 SET @saved_cs_client = @@character_set_client */;
  184. /*!40101 SET character_set_client = utf8 */;
  185. CREATE TABLE `InstTrends` (
  186. `InstID` bigint(20) unsigned NOT NULL,
  187. `LastDay` int(10) unsigned NOT NULL,
  188. `Name` varchar(512) NOT NULL,
  189. `URL` varchar(512) NOT NULL,
  190. `Pos` smallint(5) unsigned NOT NULL,
  191. KEY `InstID` (`InstID`)
  192. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  193. /*!40101 SET character_set_client = @saved_cs_client */;
  194. --
  195. -- Table structure for table `Instances`
  196. --
  197. DROP TABLE IF EXISTS `Instances`;
  198. /*!40101 SET @saved_cs_client = @@character_set_client */;
  199. /*!40101 SET character_set_client = utf8 */;
  200. CREATE TABLE `Instances` (
  201. `ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  202. `FirstSeen` int(10) unsigned DEFAULT NULL,
  203. `IsMastodon` tinyint(1) unsigned DEFAULT NULL,
  204. `Priority` tinyint(3) unsigned DEFAULT NULL,
  205. `Visible` tinyint(1) unsigned NOT NULL DEFAULT 1,
  206. `Noxious` tinyint(1) unsigned NOT NULL DEFAULT 0,
  207. `NoxReason` varchar(2048) DEFAULT NULL,
  208. `NoxLastModTS` int(10) unsigned DEFAULT NULL,
  209. `URI` varchar(256) NOT NULL,
  210. `Title` varchar(256) DEFAULT NULL,
  211. `ShortDesc` text DEFAULT NULL,
  212. `LongDesc` text DEFAULT NULL,
  213. `OurDesc` text DEFAULT NULL,
  214. `OurDescEN` text DEFAULT NULL,
  215. `LocalityID` int(10) unsigned DEFAULT NULL,
  216. `OurLangsLock` tinyint(1) unsigned NOT NULL DEFAULT 0,
  217. `Email` varchar(64) DEFAULT NULL,
  218. `Software` varchar(64) DEFAULT NULL,
  219. `Version` varchar(128) DEFAULT NULL,
  220. `UserCount` int(10) unsigned DEFAULT NULL,
  221. `StatusCount` bigint(20) unsigned DEFAULT NULL,
  222. `DomainCount` int(10) unsigned DEFAULT NULL,
  223. `ActiveUsersMonth` int(10) unsigned DEFAULT NULL,
  224. `ActiveUsersHalfYear` int(10) unsigned DEFAULT NULL,
  225. `Thumb` varchar(512) DEFAULT NULL,
  226. `RegOpen` tinyint(1) unsigned DEFAULT NULL,
  227. `RegReqApproval` tinyint(1) unsigned DEFAULT NULL,
  228. `MaxTootChars` mediumint(8) unsigned DEFAULT NULL,
  229. `AdmAccount` varchar(128) DEFAULT NULL,
  230. `AdmDisplayName` varchar(64) DEFAULT NULL,
  231. `AdmCreatedAt` int(10) DEFAULT NULL,
  232. `AdmNote` varchar(4096) DEFAULT NULL,
  233. `AdmURL` varchar(128) DEFAULT NULL,
  234. `AdmAvatar` varchar(512) DEFAULT NULL,
  235. `AdmHeader` varchar(512) DEFAULT NULL,
  236. `PublicBlocksList` tinyint(1) unsigned NOT NULL DEFAULT 0,
  237. `Threads` varchar(16) DEFAULT NULL,
  238. `TotChecks` int(10) unsigned NOT NULL DEFAULT 0,
  239. `OkChecks` int(10) unsigned NOT NULL DEFAULT 0,
  240. `WasLastCheckOk` tinyint(1) unsigned NOT NULL DEFAULT 0,
  241. `LastOkCheckTS` int(10) unsigned DEFAULT NULL,
  242. `GuestID` int(10) unsigned DEFAULT NULL,
  243. `LastGuestEdit` int(10) unsigned DEFAULT NULL,
  244. `InsertTS` int(10) unsigned NOT NULL,
  245. `RPos` int(10) unsigned DEFAULT NULL,
  246. PRIMARY KEY (`ID`),
  247. KEY `LocalityID` (`LocalityID`) USING BTREE,
  248. KEY `GuestID` (`GuestID`) USING BTREE,
  249. KEY `URI` (`URI`)
  250. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  251. /*!40101 SET character_set_client = @saved_cs_client */;
  252. --
  253. -- Table structure for table `Languages`
  254. --
  255. DROP TABLE IF EXISTS `Languages`;
  256. /*!40101 SET @saved_cs_client = @@character_set_client */;
  257. /*!40101 SET character_set_client = utf8 */;
  258. CREATE TABLE `Languages` (
  259. `ID` int(11) unsigned NOT NULL AUTO_INCREMENT,
  260. `Code` varchar(16) NOT NULL,
  261. `NameOrig` varchar(64) DEFAULT NULL,
  262. `NamePT_BR` varchar(64) DEFAULT NULL,
  263. `NameDE` varchar(64) DEFAULT NULL,
  264. `NameUK` varchar(64) DEFAULT NULL,
  265. `NameCA` varchar(64) DEFAULT NULL,
  266. `NameEN` varchar(64) DEFAULT NULL,
  267. `NameES` varchar(64) DEFAULT NULL,
  268. `NameFR` varchar(64) DEFAULT NULL,
  269. `NameGL` varchar(64) DEFAULT NULL,
  270. `NameIT` varchar(64) DEFAULT NULL,
  271. `AddedBy` int(10) unsigned NOT NULL DEFAULT 1,
  272. PRIMARY KEY (`ID`),
  273. KEY `AddedBy` (`AddedBy`) USING BTREE
  274. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  275. /*!40101 SET character_set_client = @saved_cs_client */;
  276. --
  277. -- Table structure for table `Localities`
  278. --
  279. DROP TABLE IF EXISTS `Localities`;
  280. /*!40101 SET @saved_cs_client = @@character_set_client */;
  281. /*!40101 SET character_set_client = utf8 */;
  282. CREATE TABLE `Localities` (
  283. `ID` int(10) unsigned NOT NULL AUTO_INCREMENT,
  284. `OSMID` bigint(20) unsigned NOT NULL,
  285. `NameOrig` varchar(128) DEFAULT NULL,
  286. `NameCA` varchar(128) DEFAULT NULL,
  287. `NameEN` varchar(128) DEFAULT NULL,
  288. `NameES` varchar(128) DEFAULT NULL,
  289. `NameFR` varchar(128) DEFAULT NULL,
  290. `NameGL` varchar(128) DEFAULT NULL,
  291. `NameIT` varchar(128) DEFAULT NULL,
  292. `AddedBy` int(10) unsigned NOT NULL DEFAULT 1,
  293. PRIMARY KEY (`ID`),
  294. KEY `AddedBy` (`AddedBy`) USING BTREE
  295. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  296. /*!40101 SET character_set_client = @saved_cs_client */;
  297. --
  298. -- Table structure for table `Notifications`
  299. --
  300. DROP TABLE IF EXISTS `Notifications`;
  301. /*!40101 SET @saved_cs_client = @@character_set_client */;
  302. /*!40101 SET character_set_client = utf8 */;
  303. CREATE TABLE `Notifications` (
  304. `ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  305. `Notification` varchar(15000) NOT NULL,
  306. `Severity` tinyint(3) unsigned NOT NULL,
  307. `Microtime` decimal(14,4) unsigned NOT NULL,
  308. `Seen` tinyint(1) unsigned NOT NULL DEFAULT 0,
  309. `Deleted` tinyint(1) unsigned NOT NULL DEFAULT 0,
  310. PRIMARY KEY (`ID`)
  311. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  312. /*!40101 SET character_set_client = @saved_cs_client */;
  313. --
  314. -- Table structure for table `Peers`
  315. --
  316. DROP TABLE IF EXISTS `Peers`;
  317. /*!40101 SET @saved_cs_client = @@character_set_client */;
  318. /*!40101 SET character_set_client = utf8 */;
  319. CREATE TABLE `Peers` (
  320. `ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  321. `Hostname` varchar(256) NOT NULL,
  322. `FirstCheckTS` int(11) unsigned DEFAULT NULL,
  323. `LastOkCheckTS` int(11) unsigned DEFAULT NULL,
  324. PRIMARY KEY (`ID`)
  325. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  326. /*!40101 SET character_set_client = @saved_cs_client */;
  327. --
  328. -- Table structure for table `Platforms`
  329. --
  330. DROP TABLE IF EXISTS `Platforms`;
  331. /*!40101 SET @saved_cs_client = @@character_set_client */;
  332. /*!40101 SET character_set_client = utf8 */;
  333. CREATE TABLE `Platforms` (
  334. `ID` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
  335. `Name` varchar(128) NOT NULL,
  336. `Consider` tinyint(1) unsigned DEFAULT NULL,
  337. `Comment` varchar(1024) DEFAULT NULL,
  338. PRIMARY KEY (`ID`)
  339. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  340. /*!40101 SET character_set_client = @saved_cs_client */;
  341. --
  342. -- Table structure for table `Policies`
  343. --
  344. DROP TABLE IF EXISTS `Policies`;
  345. /*!40101 SET @saved_cs_client = @@character_set_client */;
  346. /*!40101 SET character_set_client = utf8 */;
  347. CREATE TABLE `Policies` (
  348. `ID` int(10) unsigned NOT NULL AUTO_INCREMENT,
  349. `Name` varchar(64) NOT NULL,
  350. `AddedBy` int(10) unsigned NOT NULL DEFAULT 1,
  351. PRIMARY KEY (`ID`),
  352. KEY `AddedBy` (`AddedBy`) USING BTREE
  353. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  354. /*!40101 SET character_set_client = @saved_cs_client */;
  355. --
  356. -- Table structure for table `PresFiltConds`
  357. --
  358. DROP TABLE IF EXISTS `PresFiltConds`;
  359. /*!40101 SET @saved_cs_client = @@character_set_client */;
  360. /*!40101 SET character_set_client = utf8 */;
  361. CREATE TABLE `PresFiltConds` (
  362. `PresID` int(10) unsigned NOT NULL,
  363. `OpenPar` varchar(3) DEFAULT NULL,
  364. `Field` varchar(64) NOT NULL,
  365. `Cond` varchar(32) NOT NULL,
  366. `ValueSel` varchar(64) DEFAULT NULL,
  367. `ValueInp` varchar(256) DEFAULT NULL,
  368. `ClosePar` varchar(3) DEFAULT NULL,
  369. `AndOr` varchar(3) DEFAULT NULL,
  370. `Pos` tinyint(3) unsigned NOT NULL,
  371. KEY `PresID` (`PresID`)
  372. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  373. /*!40101 SET character_set_client = @saved_cs_client */;
  374. --
  375. -- Table structure for table `PresFiltCondsAdm`
  376. --
  377. DROP TABLE IF EXISTS `PresFiltCondsAdm`;
  378. /*!40101 SET @saved_cs_client = @@character_set_client */;
  379. /*!40101 SET character_set_client = utf8 */;
  380. CREATE TABLE `PresFiltCondsAdm` (
  381. `AdmID` int(10) unsigned NOT NULL,
  382. `OpenPar` varchar(3) DEFAULT NULL,
  383. `Field` varchar(64) NOT NULL,
  384. `Cond` varchar(32) NOT NULL,
  385. `ValueSel` varchar(64) DEFAULT NULL,
  386. `ValueInp` varchar(256) DEFAULT NULL,
  387. `ClosePar` varchar(3) DEFAULT NULL,
  388. `AndOr` varchar(3) DEFAULT NULL,
  389. `Pos` tinyint(3) unsigned NOT NULL,
  390. KEY `AdmID` (`AdmID`)
  391. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  392. /*!40101 SET character_set_client = @saved_cs_client */;
  393. --
  394. -- Table structure for table `PresOrdConds`
  395. --
  396. DROP TABLE IF EXISTS `PresOrdConds`;
  397. /*!40101 SET @saved_cs_client = @@character_set_client */;
  398. /*!40101 SET character_set_client = utf8 */;
  399. CREATE TABLE `PresOrdConds` (
  400. `PresID` int(10) unsigned NOT NULL,
  401. `Field` varchar(64) NOT NULL,
  402. `Sort` varchar(4) NOT NULL,
  403. `Pos` tinyint(3) unsigned NOT NULL,
  404. KEY `PresID` (`PresID`)
  405. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  406. /*!40101 SET character_set_client = @saved_cs_client */;
  407. --
  408. -- Table structure for table `PresOrdCondsAdm`
  409. --
  410. DROP TABLE IF EXISTS `PresOrdCondsAdm`;
  411. /*!40101 SET @saved_cs_client = @@character_set_client */;
  412. /*!40101 SET character_set_client = utf8 */;
  413. CREATE TABLE `PresOrdCondsAdm` (
  414. `AdmID` int(10) unsigned NOT NULL,
  415. `Field` varchar(64) NOT NULL,
  416. `Sort` varchar(4) NOT NULL,
  417. `Pos` tinyint(3) unsigned NOT NULL,
  418. KEY `AdmID` (`AdmID`)
  419. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  420. /*!40101 SET character_set_client = @saved_cs_client */;
  421. --
  422. -- Table structure for table `Presets`
  423. --
  424. DROP TABLE IF EXISTS `Presets`;
  425. /*!40101 SET @saved_cs_client = @@character_set_client */;
  426. /*!40101 SET character_set_client = utf8 */;
  427. CREATE TABLE `Presets` (
  428. `ID` int(10) unsigned NOT NULL AUTO_INCREMENT,
  429. `Name` varchar(256) NOT NULL,
  430. PRIMARY KEY (`ID`)
  431. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  432. /*!40101 SET character_set_client = @saved_cs_client */;
  433. --
  434. -- Table structure for table `Stats`
  435. --
  436. DROP TABLE IF EXISTS `Stats`;
  437. /*!40101 SET @saved_cs_client = @@character_set_client */;
  438. /*!40101 SET character_set_client = utf8 */;
  439. CREATE TABLE `Stats` (
  440. `ID` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
  441. `TotInsts` mediumint(8) unsigned NOT NULL,
  442. `GoodInsts` mediumint(8) unsigned NOT NULL,
  443. `FeatInsts` mediumint(8) unsigned NOT NULL,
  444. `TotUsers` bigint(20) unsigned NOT NULL,
  445. `Time` int(10) unsigned NOT NULL,
  446. PRIMARY KEY (`ID`)
  447. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  448. /*!40101 SET character_set_client = @saved_cs_client */;
  449. --
  450. -- Table structure for table `Tags`
  451. --
  452. DROP TABLE IF EXISTS `Tags`;
  453. /*!40101 SET @saved_cs_client = @@character_set_client */;
  454. /*!40101 SET character_set_client = utf8 */;
  455. CREATE TABLE `Tags` (
  456. `ID` int(10) unsigned NOT NULL AUTO_INCREMENT,
  457. `Name` varchar(64) NOT NULL,
  458. `AddedBy` int(10) unsigned NOT NULL DEFAULT 1,
  459. PRIMARY KEY (`ID`),
  460. KEY `AddedBy` (`AddedBy`) USING BTREE
  461. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  462. /*!40101 SET character_set_client = @saved_cs_client */;
  463. --
  464. -- Table structure for table `Users`
  465. --
  466. DROP TABLE IF EXISTS `Users`;
  467. /*!40101 SET @saved_cs_client = @@character_set_client */;
  468. /*!40101 SET character_set_client = utf8 */;
  469. CREATE TABLE `Users` (
  470. `ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  471. `InstID` bigint(20) unsigned DEFAULT NULL,
  472. `host` varchar(256) DEFAULT NULL,
  473. `locid` bigint(20) unsigned DEFAULT NULL,
  474. `username` varchar(64) DEFAULT NULL,
  475. `display_name` varchar(64) DEFAULT NULL,
  476. `locked` tinyint(1) unsigned DEFAULT NULL,
  477. `bot` tinyint(1) unsigned DEFAULT NULL,
  478. `created_at` int(10) unsigned DEFAULT NULL,
  479. `note` varchar(4096) DEFAULT NULL,
  480. `url` varchar(256) DEFAULT NULL,
  481. `avatar` varchar(256) DEFAULT NULL,
  482. `header` varchar(256) DEFAULT NULL,
  483. `statuses_count` int(10) unsigned DEFAULT NULL,
  484. `last_status_at` int(10) unsigned DEFAULT NULL,
  485. `tags` varchar(4096) DEFAULT NULL,
  486. PRIMARY KEY (`ID`),
  487. KEY `InstID` (`InstID`) USING BTREE
  488. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  489. /*!40101 SET character_set_client = @saved_cs_client */;
  490. --
  491. -- Table structure for table `UsersFields`
  492. --
  493. DROP TABLE IF EXISTS `UsersFields`;
  494. /*!40101 SET @saved_cs_client = @@character_set_client */;
  495. /*!40101 SET character_set_client = utf8 */;
  496. CREATE TABLE `UsersFields` (
  497. `UserID` bigint(20) unsigned NOT NULL,
  498. `name` varchar(4096) DEFAULT NULL,
  499. `value` varchar(4096) DEFAULT NULL,
  500. `verified` tinyint(1) unsigned DEFAULT NULL,
  501. KEY `UserID` (`UserID`)
  502. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  503. /*!40101 SET character_set_client = @saved_cs_client */;
  504. --
  505. -- Table structure for table `ZHits`
  506. --
  507. DROP TABLE IF EXISTS `ZHits`;
  508. /*!40101 SET @saved_cs_client = @@character_set_client */;
  509. /*!40101 SET character_set_client = utf8 */;
  510. CREATE TABLE `ZHits` (
  511. `UID` char(32) CHARACTER SET ascii COLLATE ascii_general_ci NOT NULL,
  512. `URL` varchar(32) CHARACTER SET ascii COLLATE ascii_general_ci NOT NULL,
  513. `Lang` varchar(16) CHARACTER SET ascii COLLATE ascii_general_ci NOT NULL,
  514. `TS` int(10) unsigned NOT NULL
  515. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  516. /*!40101 SET character_set_client = @saved_cs_client */;
  517. --
  518. -- Table structure for table `ZStats`
  519. --
  520. DROP TABLE IF EXISTS `ZStats`;
  521. /*!40101 SET @saved_cs_client = @@character_set_client */;
  522. /*!40101 SET character_set_client = utf8 */;
  523. CREATE TABLE `ZStats` (
  524. `TS` int(10) unsigned NOT NULL,
  525. `Hits` int(10) unsigned NOT NULL,
  526. `HitsLang` varchar(5000) NOT NULL,
  527. `HitsPage` varchar(5000) NOT NULL,
  528. `Visits` int(10) unsigned NOT NULL
  529. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  530. /*!40101 SET character_set_client = @saved_cs_client */;
  531. /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
  532. /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
  533. /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
  534. /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
  535. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  536. /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  537. /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
  538. /*M!100616 SET NOTE_VERBOSITY=@OLD_NOTE_VERBOSITY */;
  539. -- Dump completed on 2024-08-25 1:18:51