# CAcert SQL Dump # version 0.0.3 # # Generation Time: Fri, 29 Mar 2024 09:00:46 +0100# # Database: `cacert` # # -------------------------------------------------------- # # Table structure for table `abusereports` # DROP TABLE IF EXISTS `abusereports`; CREATE TABLE `abusereports` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `when` datetime /* mariadb-5.3 */ NOT NULL, `IP` int(11) DEFAULT NULL, `url` varchar(255) NOT NULL, `name` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, `comment` varchar(255) NOT NULL, `reason` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci; # -------------------------------------------------------- # # Table structure for table `addlang` # DROP TABLE IF EXISTS `addlang`; CREATE TABLE `addlang` ( `id` int(11) NOT NULL AUTO_INCREMENT, `userid` int(11) NOT NULL, `lang` varchar(5) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `userid` (`userid`,`lang`) ) ENGINE=InnoDB AUTO_INCREMENT=34648 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci; # -------------------------------------------------------- # # Table structure for table `adminlog` # DROP TABLE IF EXISTS `adminlog`; CREATE TABLE `adminlog` ( `when` datetime /* mariadb-5.3 */ NOT NULL, `uid` int(11) NOT NULL, `adminid` int(11) NOT NULL, `type` varchar(50) NOT NULL, `information` varchar(50) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci; # -------------------------------------------------------- # # Table structure for table `advertising` # DROP TABLE IF EXISTS `advertising`; CREATE TABLE `advertising` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `replaceid` int(10) unsigned NOT NULL, `replaced` tinyint(3) unsigned NOT NULL, `orderid` tinyint(3) unsigned NOT NULL, `link` varchar(255) NOT NULL, `title` varchar(255) NOT NULL, `months` tinyint(3) unsigned NOT NULL, `who` int(10) unsigned NOT NULL, `when` datetime /* mariadb-5.3 */ NOT NULL, `active` tinyint(3) unsigned NOT NULL, `approvedby` int(10) unsigned NOT NULL, `expires` datetime /* mariadb-5.3 */ NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=83 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci; # -------------------------------------------------------- # # Table structure for table `alerts` # DROP TABLE IF EXISTS `alerts`; CREATE TABLE `alerts` ( `memid` int(11) NOT NULL DEFAULT 0, `general` tinyint(1) NOT NULL DEFAULT 0, `country` tinyint(1) NOT NULL DEFAULT 0, `regional` tinyint(1) NOT NULL DEFAULT 0, `radius` tinyint(1) NOT NULL DEFAULT 0, PRIMARY KEY (`memid`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci; # -------------------------------------------------------- # # Table structure for table `baddomains` # DROP TABLE IF EXISTS `baddomains`; CREATE TABLE `baddomains` ( `domain` varchar(255) NOT NULL DEFAULT '' ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci; # -------------------------------------------------------- # # Table structure for table `cats_passed` # DROP TABLE IF EXISTS `cats_passed`; CREATE TABLE `cats_passed` ( `id` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) NOT NULL, `variant_id` int(11) NOT NULL, `pass_date` timestamp /* mariadb-5.3 */ NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), PRIMARY KEY (`id`), UNIQUE KEY `test_passed` (`user_id`,`variant_id`,`pass_date`) ) ENGINE=InnoDB AUTO_INCREMENT=14685 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci; # -------------------------------------------------------- # # Table structure for table `cats_type` # DROP TABLE IF EXISTS `cats_type`; CREATE TABLE `cats_type` ( `id` int(11) NOT NULL AUTO_INCREMENT, `type_text` varchar(255) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `type_text` (`type_text`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci; # -------------------------------------------------------- # # Table structure for table `cats_variant` # DROP TABLE IF EXISTS `cats_variant`; CREATE TABLE `cats_variant` ( `id` int(11) NOT NULL AUTO_INCREMENT, `type_id` int(11) NOT NULL, `test_text` varchar(255) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `test_text` (`test_text`,`type_id`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci; # -------------------------------------------------------- # # Table structure for table `countries` # DROP TABLE IF EXISTS `countries`; CREATE TABLE `countries` ( `id` int(3) NOT NULL AUTO_INCREMENT, `name` varchar(50) NOT NULL DEFAULT '', `acount` int(11) NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=252 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci; # -------------------------------------------------------- # # Table structure for table `disputedomain` # DROP TABLE IF EXISTS `disputedomain`; CREATE TABLE `disputedomain` ( `id` int(11) NOT NULL DEFAULT 0, `memid` int(11) NOT NULL DEFAULT 0, `oldmemid` int(11) NOT NULL DEFAULT 0, `domain` varchar(255) NOT NULL DEFAULT '', `created` datetime /* mariadb-5.3 */ NOT NULL DEFAULT '0000-00-00 00:00:00', `hash` varchar(50) NOT NULL DEFAULT '', `attempts` int(1) NOT NULL DEFAULT 0, `action` enum('accept','reject','failed') NOT NULL DEFAULT 'accept' ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci; # -------------------------------------------------------- # # Table structure for table `disputeemail` # DROP TABLE IF EXISTS `disputeemail`; CREATE TABLE `disputeemail` ( `id` int(11) NOT NULL DEFAULT 0, `memid` int(11) NOT NULL DEFAULT 0, `oldmemid` int(11) NOT NULL DEFAULT 0, `email` varchar(255) NOT NULL DEFAULT '', `created` datetime /* mariadb-5.3 */ NOT NULL DEFAULT '0000-00-00 00:00:00', `hash` varchar(50) NOT NULL DEFAULT '', `attempts` int(1) NOT NULL DEFAULT 0, `action` enum('accept','reject','failed') NOT NULL DEFAULT 'accept', `IP` varchar(20) NOT NULL DEFAULT '' ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci; # -------------------------------------------------------- # # Table structure for table `domaincerts` # DROP TABLE IF EXISTS `domaincerts`; CREATE TABLE `domaincerts` ( `id` int(11) NOT NULL AUTO_INCREMENT, `domid` int(11) NOT NULL DEFAULT 0, `serial` varchar(50) NOT NULL DEFAULT '', `CN` varchar(255) NOT NULL DEFAULT '', `subject` text NOT NULL, `csr_name` varchar(255) NOT NULL DEFAULT '', `crt_name` varchar(255) NOT NULL DEFAULT '', `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `modified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `revoked` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `expire` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `warning` tinyint(1) NOT NULL DEFAULT 0, `renewed` tinyint(1) NOT NULL DEFAULT 0, `rootcert` int(2) NOT NULL DEFAULT 1, `md` enum('md5','sha1','sha256','sha512') NOT NULL DEFAULT 'sha512', `type` tinyint(4) DEFAULT NULL, `pkhash` char(40) DEFAULT NULL, `certhash` char(40) DEFAULT NULL, `coll_found` tinyint(1) NOT NULL DEFAULT 0, `description` varchar(100) NOT NULL DEFAULT '', PRIMARY KEY (`id`), KEY `domaincerts_pkhash` (`pkhash`), KEY `revoked` (`revoked`), KEY `created` (`created`), KEY `domid` (`domid`), KEY `serial` (`serial`), KEY `domaincrt` (`crt_name`), KEY `stats_domaincerts_expire` (`expire`) ) ENGINE=InnoDB AUTO_INCREMENT=831739 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci; # -------------------------------------------------------- # # Table structure for table `domains` # DROP TABLE IF EXISTS `domains`; CREATE TABLE `domains` ( `id` int(11) NOT NULL AUTO_INCREMENT, `memid` int(11) NOT NULL DEFAULT 0, `domain` varchar(255) NOT NULL DEFAULT '', `created` datetime /* mariadb-5.3 */ NOT NULL DEFAULT '0000-00-00 00:00:00', `modified` datetime /* mariadb-5.3 */ NOT NULL DEFAULT '0000-00-00 00:00:00', `deleted` datetime /* mariadb-5.3 */ NOT NULL DEFAULT '0000-00-00 00:00:00', `hash` varchar(50) NOT NULL DEFAULT '', `attempts` int(1) NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `memid` (`memid`), KEY `domain` (`domain`), KEY `memid_2` (`memid`), KEY `stats_domains_hash` (`hash`), KEY `stats_domains_deleted` (`deleted`) ) ENGINE=InnoDB AUTO_INCREMENT=333545 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci; # -------------------------------------------------------- # # Table structure for table `domlink` # DROP TABLE IF EXISTS `domlink`; CREATE TABLE `domlink` ( `certid` int(11) NOT NULL DEFAULT 0, `domid` int(11) NOT NULL DEFAULT 0, UNIQUE KEY `index` (`certid`,`domid`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci; # -------------------------------------------------------- # # Table structure for table `email` # DROP TABLE IF EXISTS `email`; CREATE TABLE `email` ( `id` int(11) NOT NULL AUTO_INCREMENT, `memid` int(11) NOT NULL DEFAULT 0, `email` varchar(255) NOT NULL DEFAULT '', `created` datetime /* mariadb-5.3 */ NOT NULL DEFAULT '0000-00-00 00:00:00', `modified` datetime /* mariadb-5.3 */ NOT NULL DEFAULT '0000-00-00 00:00:00', `deleted` datetime /* mariadb-5.3 */ NOT NULL DEFAULT '0000-00-00 00:00:00', `hash` varchar(50) NOT NULL DEFAULT '', `attempts` int(1) NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `memid` (`memid`), KEY `email` (`email`), KEY `stats_email_hash` (`hash`), KEY `stats_email_deleted` (`deleted`) ) ENGINE=InnoDB AUTO_INCREMENT=553605 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci; # -------------------------------------------------------- # # Table structure for table `emailcerts` # DROP TABLE IF EXISTS `emailcerts`; CREATE TABLE `emailcerts` ( `id` int(11) NOT NULL AUTO_INCREMENT, `memid` int(11) NOT NULL DEFAULT 0, `serial` varchar(50) NOT NULL DEFAULT '', `CN` varchar(255) NOT NULL DEFAULT '', `subject` text NOT NULL, `keytype` char(2) NOT NULL DEFAULT 'NS', `codesign` tinyint(1) NOT NULL DEFAULT 0, `csr_name` varchar(255) NOT NULL DEFAULT '', `crt_name` varchar(255) NOT NULL DEFAULT '', `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `modified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `revoked` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `expire` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `warning` tinyint(1) NOT NULL DEFAULT 0, `renewed` tinyint(1) NOT NULL DEFAULT 0, `rootcert` int(2) NOT NULL DEFAULT 1, `md` enum('md5','sha1','sha256','sha512') NOT NULL DEFAULT 'sha512', `type` tinyint(4) DEFAULT NULL, `disablelogin` int(1) NOT NULL DEFAULT 0, `pkhash` char(40) DEFAULT NULL, `certhash` char(40) DEFAULT NULL, `coll_found` tinyint(1) NOT NULL DEFAULT 0, `description` varchar(100) NOT NULL DEFAULT '', PRIMARY KEY (`id`), KEY `emailcerts_pkhash` (`pkhash`), KEY `revoked` (`revoked`), KEY `created` (`created`), KEY `memid` (`memid`), KEY `serial` (`serial`), KEY `emailcrt` (`crt_name`), KEY `stats_emailcerts_expire` (`expire`) ) ENGINE=InnoDB AUTO_INCREMENT=707816 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci; # -------------------------------------------------------- # # Table structure for table `emaillink` # DROP TABLE IF EXISTS `emaillink`; CREATE TABLE `emaillink` ( `emailcertsid` int(11) NOT NULL DEFAULT 0, `emailid` int(11) NOT NULL DEFAULT 0, KEY `index` (`emailcertsid`,`emailid`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci; # -------------------------------------------------------- # # Table structure for table `gpg` # DROP TABLE IF EXISTS `gpg`; CREATE TABLE `gpg` ( `id` int(11) NOT NULL AUTO_INCREMENT, `memid` int(11) NOT NULL DEFAULT 0, `email` varchar(255) NOT NULL DEFAULT '', `level` int(1) NOT NULL DEFAULT 0, `multiple` tinyint(1) NOT NULL DEFAULT 0, `expires` tinyint(1) NOT NULL DEFAULT 0, `csr` varchar(255) NOT NULL DEFAULT '', `crt` varchar(255) NOT NULL DEFAULT '', `issued` datetime /* mariadb-5.3 */ NOT NULL DEFAULT '0000-00-00 00:00:00', `expire` datetime /* mariadb-5.3 */ NOT NULL DEFAULT '0000-00-00 00:00:00', `keyid` char(18) DEFAULT NULL, `warning` tinyint(1) NOT NULL DEFAULT 0, `description` varchar(100) NOT NULL DEFAULT '', PRIMARY KEY (`id`), KEY `stats_gpg_expire` (`expire`), KEY `stats_gpg_issued` (`issued`) ) ENGINE=InnoDB AUTO_INCREMENT=25162 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci; # -------------------------------------------------------- # # Table structure for table `languages` # DROP TABLE IF EXISTS `languages`; CREATE TABLE `languages` ( `locale` varchar(5) NOT NULL, `en_co` varchar(255) NOT NULL, `en_lang` varchar(255) NOT NULL, `country` varchar(255) NOT NULL, `lang` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci; # -------------------------------------------------------- # # Table structure for table `localias` # DROP TABLE IF EXISTS `localias`; CREATE TABLE `localias` ( `locid` int(11) NOT NULL DEFAULT 0, `name` varchar(255) NOT NULL DEFAULT '', KEY `locid` (`locid`), KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci; # -------------------------------------------------------- # # Table structure for table `locations` # DROP TABLE IF EXISTS `locations`; CREATE TABLE `locations` ( `id` int(7) NOT NULL AUTO_INCREMENT, `regid` int(4) NOT NULL DEFAULT 0, `ccid` int(3) NOT NULL DEFAULT 0, `name` varchar(50) NOT NULL DEFAULT '', `lat` double(6,3) NOT NULL DEFAULT 0.000, `long` double(6,3) NOT NULL DEFAULT 0.000, `acount` int(11) NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `ccid` (`ccid`), KEY `regid` (`regid`), KEY `name` (`name`) ) ENGINE=InnoDB AUTO_INCREMENT=203006461 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci; # -------------------------------------------------------- # # Table structure for table `news` # DROP TABLE IF EXISTS `news`; CREATE TABLE `news` ( `id` int(11) NOT NULL AUTO_INCREMENT, `when` datetime /* mariadb-5.3 */ NOT NULL DEFAULT '0000-00-00 00:00:00', `who` varchar(255) NOT NULL DEFAULT '', `short` varchar(255) NOT NULL DEFAULT '', `story` text NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci; # -------------------------------------------------------- # # Table structure for table `notary` # DROP TABLE IF EXISTS `notary`; CREATE TABLE `notary` ( `id` int(11) NOT NULL AUTO_INCREMENT, `from` int(11) NOT NULL DEFAULT 0, `to` int(11) NOT NULL DEFAULT 0, `awarded` int(3) NOT NULL DEFAULT 0, `points` int(3) NOT NULL DEFAULT 0, `method` enum('Face to Face Meeting','Trusted Third Parties','Thawte Points Transfer','Administrative Increase','CT Magazine - Germany','Temporary Increase','Unknown','TOPUP','TTP-Assisted') NOT NULL DEFAULT 'Face to Face Meeting', `location` varchar(255) NOT NULL DEFAULT '', `date` varchar(255) NOT NULL DEFAULT '', `when` datetime /* mariadb-5.3 */ NOT NULL DEFAULT '0000-00-00 00:00:00', `expire` datetime /* mariadb-5.3 */ NOT NULL DEFAULT '0000-00-00 00:00:00', `sponsor` int(11) NOT NULL DEFAULT 0, `deleted` datetime /* mariadb-5.3 */ NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `from` (`from`), KEY `to` (`to`), KEY `from_2` (`from`), KEY `to_2` (`to`), KEY `stats_notary_when` (`when`), KEY `stats_notary_method` (`method`) ) ENGINE=InnoDB AUTO_INCREMENT=187740 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci; # -------------------------------------------------------- # # Table structure for table `org` # DROP TABLE IF EXISTS `org`; CREATE TABLE `org` ( `orgid` int(11) NOT NULL DEFAULT 0, `memid` int(11) NOT NULL DEFAULT 0, `OU` varchar(255) NOT NULL DEFAULT '', `masteracc` int(1) NOT NULL DEFAULT 0, `comments` text NOT NULL, `creator_id` int(11) NOT NULL DEFAULT 0, `created` datetime /* mariadb-5.3 */ NOT NULL DEFAULT '0000-00-00 00:00:00', `deleted` datetime /* mariadb-5.3 */ NOT NULL DEFAULT '0000-00-00 00:00:00', UNIQUE KEY `orgid` (`orgid`,`memid`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci; # -------------------------------------------------------- # # Table structure for table `orgadminlog` # DROP TABLE IF EXISTS `orgadminlog`; CREATE TABLE `orgadminlog` ( `when` datetime /* mariadb-5.3 */ NOT NULL, `oid` int(11) NOT NULL, `adminid` int(11) NOT NULL, `type` varchar(50) NOT NULL, `information` varchar(50) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci; # -------------------------------------------------------- # # Table structure for table `orgdomaincerts` # DROP TABLE IF EXISTS `orgdomaincerts`; CREATE TABLE `orgdomaincerts` ( `id` int(11) NOT NULL AUTO_INCREMENT, `orgid` int(11) NOT NULL DEFAULT 0, `subject` text NOT NULL, `serial` varchar(50) NOT NULL DEFAULT '', `CN` varchar(255) NOT NULL DEFAULT '', `csr_name` varchar(255) NOT NULL DEFAULT '', `crt_name` varchar(255) NOT NULL DEFAULT '', `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `modified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `revoked` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `expire` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `renewed` tinyint(1) NOT NULL DEFAULT 0, `rootcert` int(2) NOT NULL DEFAULT 1, `md` enum('md5','sha1','sha256','sha512') NOT NULL DEFAULT 'sha512', `type` tinyint(4) DEFAULT NULL, `warning` tinyint(1) NOT NULL DEFAULT 0, `pkhash` char(40) DEFAULT NULL, `certhash` char(40) DEFAULT NULL, `coll_found` tinyint(1) NOT NULL DEFAULT 0, `description` varchar(100) NOT NULL DEFAULT '', `orgadminid` int(11) DEFAULT NULL, `revokeorgadminid` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `orgdomaincerts_pkhash` (`pkhash`), KEY `stats_orgdomaincerts_created` (`created`), KEY `stats_orgdomaincerts_revoked` (`revoked`), KEY `stats_orgdomaincerts_expire` (`expire`) ) ENGINE=InnoDB AUTO_INCREMENT=9169 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci; # -------------------------------------------------------- # # Table structure for table `orgdomains` # DROP TABLE IF EXISTS `orgdomains`; CREATE TABLE `orgdomains` ( `id` int(11) NOT NULL AUTO_INCREMENT, `orgid` int(11) NOT NULL DEFAULT 0, `domain` varchar(255) NOT NULL DEFAULT '', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=1533 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci; # -------------------------------------------------------- # # Table structure for table `orgdomlink` # DROP TABLE IF EXISTS `orgdomlink`; CREATE TABLE `orgdomlink` ( `orgcertid` int(11) NOT NULL DEFAULT 0, `orgdomid` int(11) NOT NULL DEFAULT 0, UNIQUE KEY `index` (`orgcertid`,`orgdomid`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci; # -------------------------------------------------------- # # Table structure for table `orgemailcerts` # DROP TABLE IF EXISTS `orgemailcerts`; CREATE TABLE `orgemailcerts` ( `id` int(11) NOT NULL AUTO_INCREMENT, `orgid` int(11) NOT NULL DEFAULT 0, `serial` varchar(50) NOT NULL DEFAULT '', `CN` varchar(255) NOT NULL DEFAULT '', `subject` text NOT NULL, `keytype` char(2) NOT NULL DEFAULT 'NS', `csr_name` varchar(255) NOT NULL DEFAULT '', `crt_name` varchar(255) NOT NULL DEFAULT '', `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `modified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `revoked` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `expire` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `renewed` tinyint(1) NOT NULL DEFAULT 0, `rootcert` int(2) NOT NULL DEFAULT 1, `md` enum('md5','sha1','sha256','sha512') NOT NULL DEFAULT 'sha512', `type` tinyint(4) DEFAULT NULL, `codesign` tinyint(1) NOT NULL DEFAULT 0, `warning` tinyint(1) NOT NULL DEFAULT 0, `pkhash` char(40) DEFAULT NULL, `certhash` char(40) DEFAULT NULL, `coll_found` tinyint(1) NOT NULL DEFAULT 0, `description` varchar(100) NOT NULL DEFAULT '', `ou` varchar(50) NOT NULL DEFAULT '', `orgadminid` int(11) DEFAULT NULL, `revokeorgadminid` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `orgemailcerts_pkhash` (`pkhash`), KEY `stats_orgemailcerts_created` (`created`), KEY `stats_orgemailcerts_revoked` (`revoked`), KEY `stats_orgemailcerts_expire` (`expire`) ) ENGINE=InnoDB AUTO_INCREMENT=6895 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci; # -------------------------------------------------------- # # Table structure for table `orgemaillink` # DROP TABLE IF EXISTS `orgemaillink`; CREATE TABLE `orgemaillink` ( `emailcertsid` int(11) NOT NULL DEFAULT 0, `domid` int(11) NOT NULL DEFAULT 0, KEY `index` (`emailcertsid`,`domid`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci; # -------------------------------------------------------- # # Table structure for table `orginfo` # DROP TABLE IF EXISTS `orginfo`; CREATE TABLE `orginfo` ( `id` int(11) NOT NULL AUTO_INCREMENT, `contact` varchar(255) NOT NULL DEFAULT '', `O` varchar(255) NOT NULL DEFAULT '', `L` varchar(255) NOT NULL DEFAULT '', `ST` varchar(255) NOT NULL DEFAULT '', `C` char(2) NOT NULL DEFAULT '', `comments` text NOT NULL, `creator_id` int(11) NOT NULL DEFAULT 0, `created` datetime /* mariadb-5.3 */ NOT NULL DEFAULT '0000-00-00 00:00:00', `deleted` datetime /* mariadb-5.3 */ NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=349 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci; # -------------------------------------------------------- # # Table structure for table `otphashes` # DROP TABLE IF EXISTS `otphashes`; CREATE TABLE `otphashes` ( `when` datetime /* mariadb-5.3 */ NOT NULL, `username` varchar(255) NOT NULL, `otp` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci; # -------------------------------------------------------- # # Table structure for table `pinglog` # DROP TABLE IF EXISTS `pinglog`; CREATE TABLE `pinglog` ( `when` datetime /* mariadb-5.3 */ NOT NULL, `uid` int(11) NOT NULL, `email` varchar(255) NOT NULL, `result` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci; # -------------------------------------------------------- # # Table structure for table `regions` # DROP TABLE IF EXISTS `regions`; CREATE TABLE `regions` ( `id` int(5) NOT NULL AUTO_INCREMENT, `ccid` int(3) NOT NULL DEFAULT 0, `name` varchar(50) NOT NULL DEFAULT '', `acount` int(11) NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `ccid` (`ccid`) ) ENGINE=InnoDB AUTO_INCREMENT=79104 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci; # -------------------------------------------------------- # # Table structure for table `root_certs` # DROP TABLE IF EXISTS `root_certs`; CREATE TABLE `root_certs` ( `id` int(2) NOT NULL, `cert_text` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `cert_text` (`cert_text`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci; # -------------------------------------------------------- # # Table structure for table `schema_version` # DROP TABLE IF EXISTS `schema_version`; CREATE TABLE `schema_version` ( `id` int(11) NOT NULL AUTO_INCREMENT, `version` int(11) NOT NULL, `when` datetime /* mariadb-5.3 */ NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `version` (`version`) ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci; # -------------------------------------------------------- # # Table structure for table `stampcache` # DROP TABLE IF EXISTS `stampcache`; CREATE TABLE `stampcache` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `certid` int(10) unsigned DEFAULT NULL, `cacheexpire` bigint(20) unsigned DEFAULT NULL, `issued` datetime /* mariadb-5.3 */ NOT NULL, `expire` datetime /* mariadb-5.3 */ NOT NULL, `subject` varchar(255) NOT NULL, `hostname` varchar(255) NOT NULL, `org` tinyint(1) NOT NULL, `points` tinyint(3) unsigned NOT NULL, `O` varchar(255) NOT NULL, `L` varchar(255) NOT NULL, `ST` varchar(255) NOT NULL, `C` varchar(255) NOT NULL, `valid` tinyint(1) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `hostname` (`hostname`) ) ENGINE=InnoDB AUTO_INCREMENT=323 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci; # -------------------------------------------------------- # # Table structure for table `statscache` # DROP TABLE IF EXISTS `statscache`; CREATE TABLE `statscache` ( `timestamp` bigint(20) NOT NULL, `cache` text NOT NULL, PRIMARY KEY (`timestamp`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci; # -------------------------------------------------------- # # Table structure for table `tickets` # DROP TABLE IF EXISTS `tickets`; CREATE TABLE `tickets` ( `id` int(11) NOT NULL AUTO_INCREMENT, `timestamp` timestamp /* mariadb-5.3 */ NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), PRIMARY KEY (`id`), KEY `timestamp` (`timestamp`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci COMMENT='Is used to generate ticket numbers for tracing back problems'; # -------------------------------------------------------- # # Table structure for table `tverify` # DROP TABLE IF EXISTS `tverify`; CREATE TABLE `tverify` ( `id` int(11) NOT NULL AUTO_INCREMENT, `memid` int(11) NOT NULL DEFAULT 0, `photoid` varchar(255) NOT NULL DEFAULT '', `URL` text NOT NULL, `CN` text NOT NULL, `created` datetime /* mariadb-5.3 */ NOT NULL DEFAULT '0000-00-00 00:00:00', `modified` datetime /* mariadb-5.3 */ NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=840 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci; # -------------------------------------------------------- # # Table structure for table `tverify-vote` # DROP TABLE IF EXISTS `tverify-vote`; CREATE TABLE `tverify-vote` ( `tverify` int(11) NOT NULL DEFAULT 0, `memid` int(11) NOT NULL DEFAULT 0, `when` datetime /* mariadb-5.3 */ NOT NULL DEFAULT '0000-00-00 00:00:00', `vote` tinyint(1) NOT NULL DEFAULT 0, `comment` varchar(255) NOT NULL DEFAULT '' ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci; # -------------------------------------------------------- # # Table structure for table `user_agreements` # DROP TABLE IF EXISTS `user_agreements`; CREATE TABLE `user_agreements` ( `id` int(11) NOT NULL AUTO_INCREMENT, `memid` int(11) NOT NULL, `secmemid` int(11) DEFAULT NULL, `document` varchar(50) DEFAULT NULL, `date` datetime /* mariadb-5.3 */ DEFAULT NULL, `active` int(1) NOT NULL, `method` varchar(100) NOT NULL, `comment` varchar(100) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=488743 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci; # -------------------------------------------------------- # # Table structure for table `userlocations` # DROP TABLE IF EXISTS `userlocations`; CREATE TABLE `userlocations` ( `id` int(11) NOT NULL AUTO_INCREMENT, `memid` int(11) NOT NULL DEFAULT 0, `ccid` int(11) NOT NULL DEFAULT 0, `regid` int(11) NOT NULL DEFAULT 0, `locid` int(11) NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci; # -------------------------------------------------------- # # Table structure for table `users` # DROP TABLE IF EXISTS `users`; CREATE TABLE `users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `email` varchar(255) NOT NULL DEFAULT '', `password` varchar(255) NOT NULL DEFAULT '', `fname` varchar(255) NOT NULL DEFAULT '', `mname` varchar(255) NOT NULL DEFAULT '', `lname` varchar(255) NOT NULL DEFAULT '', `suffix` varchar(50) NOT NULL DEFAULT '', `dob` date NOT NULL DEFAULT '0000-00-00', `verified` int(1) NOT NULL DEFAULT 0, `ccid` int(3) NOT NULL DEFAULT 0, `regid` int(5) NOT NULL DEFAULT 0, `locid` int(7) NOT NULL DEFAULT 0, `listme` int(1) NOT NULL DEFAULT 0, `codesign` int(1) NOT NULL DEFAULT 0, `1024bit` tinyint(1) NOT NULL DEFAULT 0, `contactinfo` varchar(255) NOT NULL DEFAULT '', `admin` tinyint(1) NOT NULL DEFAULT 0, `orgadmin` tinyint(1) NOT NULL DEFAULT 0, `ttpadmin` tinyint(1) NOT NULL DEFAULT 0, `adadmin` tinyint(1) unsigned NOT NULL DEFAULT 0, `board` tinyint(1) NOT NULL DEFAULT 0, `tverify` tinyint(1) NOT NULL DEFAULT 0, `locadmin` tinyint(1) NOT NULL DEFAULT 0, `language` varchar(5) NOT NULL DEFAULT '', `Q1` varchar(255) NOT NULL DEFAULT '', `Q2` varchar(255) NOT NULL DEFAULT '', `Q3` varchar(255) NOT NULL DEFAULT '', `Q4` varchar(255) NOT NULL DEFAULT '', `Q5` varchar(255) NOT NULL DEFAULT '', `A1` varchar(255) NOT NULL DEFAULT '', `A2` varchar(255) NOT NULL DEFAULT '', `A3` varchar(255) NOT NULL DEFAULT '', `A4` varchar(255) NOT NULL DEFAULT '', `A5` varchar(255) NOT NULL DEFAULT '', `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `modified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `deleted` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `locked` tinyint(1) NOT NULL DEFAULT 0, `uniqueID` varchar(255) NOT NULL, `otphash` varchar(16) NOT NULL DEFAULT '', `otppin` smallint(4) unsigned zerofill NOT NULL DEFAULT 0000, `assurer` int(2) NOT NULL DEFAULT 0, `assurer_blocked` tinyint(1) NOT NULL DEFAULT 0, `lastLoginAttempt` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `ccid` (`ccid`), KEY `regid` (`regid`), KEY `locid` (`locid`), KEY `email` (`email`), KEY `userverified` (`verified`), KEY `stats_users_created` (`created`), KEY `stats_users_verified` (`verified`) ) ENGINE=InnoDB AUTO_INCREMENT=410891 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;