mastostart_solo_struttura.sql 21 KB

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