2005-01-04 02:33:56 +00:00
-- MySQL dump 9.11
--
-- Host: localhost Database: cacert
-- ------------------------------------------------------
-- Server version 4.0.22_Debian-6-log
--
-- Table structure for table `alerts`
--
2004-12-06 14:02:02 +00:00
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 ` )
) TYPE = MyISAM ;
2005-01-04 02:33:56 +00:00
--
-- Table structure for table `countries`
--
2004-12-06 14:02:02 +00:00
CREATE TABLE ` countries ` (
` id ` int ( 11 ) NOT NULL auto_increment ,
` abbr ` char ( 3 ) NOT NULL default ' ' ,
` long ` varchar ( 255 ) NOT NULL default ' ' ,
PRIMARY KEY ( ` id ` )
) TYPE = MyISAM ;
2005-01-04 02:33:56 +00:00
--
-- Table structure for table `domaincerts`
--
2004-12-06 14:02:02 +00:00
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 ' ' ,
2005-01-04 02:33:56 +00:00
` subject ` text NOT NULL ,
2004-12-06 14:02:02 +00:00
` 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 ' ,
PRIMARY KEY ( ` id ` )
) TYPE = MyISAM ;
2005-01-04 02:33:56 +00:00
--
-- Table structure for table `domains`
--
2004-12-06 14:02:02 +00:00
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 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 ' ,
` hash ` varchar ( 50 ) NOT NULL default ' ' ,
` attempts ` int ( 1 ) NOT NULL default ' 0 ' ,
PRIMARY KEY ( ` id ` )
) TYPE = MyISAM ;
2005-01-04 02:33:56 +00:00
--
-- Table structure for table `domlink`
--
2004-12-06 14:02:02 +00:00
CREATE TABLE ` domlink ` (
` certid ` int ( 11 ) NOT NULL default ' 0 ' ,
` domid ` int ( 11 ) NOT NULL default ' 0 ' ,
UNIQUE KEY ` index ` ( ` certid ` , ` domid ` )
) TYPE = MyISAM ;
2005-01-04 02:33:56 +00:00
--
-- Table structure for table `email`
--
2004-12-06 14:02:02 +00:00
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 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 ' ,
` hash ` varchar ( 50 ) NOT NULL default ' ' ,
` attempts ` int ( 1 ) NOT NULL default ' 0 ' ,
PRIMARY KEY ( ` id ` )
) TYPE = MyISAM ;
2005-01-04 02:33:56 +00:00
--
-- Table structure for table `emailcerts`
--
2004-12-06 14:02:02 +00:00
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 ' ,
2005-01-04 02:33:56 +00:00
` codesign ` tinyint ( 1 ) NOT NULL default ' 0 ' ,
2004-12-06 14:02:02 +00:00
` 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 ' ,
PRIMARY KEY ( ` id ` )
) TYPE = MyISAM ;
2005-01-04 02:33:56 +00:00
--
-- Table structure for table `emaillink`
--
2004-12-06 14:02:02 +00:00
CREATE TABLE ` emaillink ` (
` emailcertsid ` int ( 11 ) NOT NULL default ' 0 ' ,
` emailid ` int ( 11 ) NOT NULL default ' 0 ' ,
KEY ` index ` ( ` emailcertsid ` , ` emailid ` )
) TYPE = MyISAM ;
2005-01-04 02:33:56 +00:00
--
-- Table structure for table `gpg`
--
2004-12-06 14:02:02 +00:00
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 NOT NULL default ' 0000-00-00 00:00:00 ' ,
` expire ` datetime NOT NULL default ' 0000-00-00 00:00:00 ' ,
PRIMARY KEY ( ` id ` )
) TYPE = MyISAM ;
2005-01-04 02:33:56 +00:00
--
-- Table structure for table `locations`
--
2004-12-06 14:02:02 +00:00
CREATE TABLE ` locations ` (
` id ` int ( 11 ) NOT NULL auto_increment ,
` ccid ` int ( 11 ) NOT NULL default ' 0 ' ,
` regid ` int ( 11 ) NOT NULL default ' 0 ' ,
` abbr ` char ( 3 ) NOT NULL default ' ' ,
` long ` varchar ( 255 ) NOT NULL default ' ' ,
` longalt ` varchar ( 255 ) NOT NULL default ' ' ,
` lat ` decimal ( 8 , 5 ) NOT NULL default ' 0.00000 ' ,
` lon ` decimal ( 8 , 5 ) NOT NULL default ' 0.00000 ' ,
PRIMARY KEY ( ` id ` ) ,
UNIQUE KEY ` thekey ` ( ` ccid ` , ` regid ` , ` abbr ` )
) TYPE = MyISAM ;
2005-01-04 02:33:56 +00:00
--
-- Table structure for table `news`
--
2004-12-06 14:02:02 +00:00
CREATE TABLE ` news ` (
` id ` int ( 11 ) NOT NULL auto_increment ,
` when ` datetime 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 ` )
) TYPE = MyISAM ;
2005-01-04 02:33:56 +00:00
--
-- Table structure for table `notary`
--
2004-12-06 14:02:02 +00:00
CREATE TABLE ` notary ` (
` from ` int ( 11 ) NOT NULL default ' 0 ' ,
` to ` int ( 11 ) NOT NULL default ' 0 ' ,
` points ` int ( 3 ) NOT NULL default ' 0 ' ,
2005-01-04 02:33:56 +00:00
` method ` enum ( ' Face to Face Meeting ' , ' Trusted 3rd Parties ' , ' Thawte Points Transfer ' , ' Administrative Increase ' , ' CT Magazine - Germany ' , ' Temporary Increase ' ) NOT NULL default ' Face to Face Meeting ' ,
2004-12-06 14:02:02 +00:00
` location ` varchar ( 255 ) NOT NULL default ' ' ,
` date ` varchar ( 255 ) NOT NULL default ' ' ,
` when ` datetime NOT NULL default ' 0000-00-00 00:00:00 ' ,
2005-01-04 02:33:56 +00:00
` expire ` datetime NOT NULL default ' 0000-00-00 00:00:00 ' ,
` sponsor ` int ( 11 ) NOT NULL default ' 0 ' ,
2004-12-06 14:02:02 +00:00
KEY ` from ` ( ` from ` ) ,
KEY ` to ` ( ` to ` )
) TYPE = MyISAM ;
2005-01-04 02:33:56 +00:00
--
-- Table structure for table `org`
--
2004-12-06 14:02:02 +00:00
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 ,
UNIQUE KEY ` orgid ` ( ` orgid ` , ` memid ` )
) TYPE = MyISAM ;
2005-01-04 02:33:56 +00:00
--
-- Table structure for table `orgdomaincerts`
--
2004-12-06 14:02:02 +00:00
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 ' ,
PRIMARY KEY ( ` id ` )
) TYPE = MyISAM ;
2005-01-04 02:33:56 +00:00
--
-- Table structure for table `orgdomains`
--
2004-12-06 14:02:02 +00:00
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 ` )
) TYPE = MyISAM ;
2005-01-04 02:33:56 +00:00
--
-- Table structure for table `orgdomlink`
--
2004-12-06 14:02:02 +00:00
CREATE TABLE ` orgdomlink ` (
` orgcertid ` int ( 11 ) NOT NULL default ' 0 ' ,
` orgdomid ` int ( 11 ) NOT NULL default ' 0 ' ,
UNIQUE KEY ` index ` ( ` orgcertid ` , ` orgdomid ` )
) TYPE = MyISAM ;
2005-01-04 02:33:56 +00:00
--
-- Table structure for table `orgemailcerts`
--
2004-12-06 14:02:02 +00:00
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 ' ,
PRIMARY KEY ( ` id ` )
) TYPE = MyISAM ;
2005-01-04 02:33:56 +00:00
--
-- Table structure for table `orgemaillink`
--
2004-12-06 14:02:02 +00:00
CREATE TABLE ` orgemaillink ` (
` emailcertsid ` int ( 11 ) NOT NULL default ' 0 ' ,
` domid ` int ( 11 ) NOT NULL default ' 0 ' ,
KEY ` index ` ( ` emailcertsid ` , ` domid ` )
) TYPE = MyISAM ;
2005-01-04 02:33:56 +00:00
--
-- Table structure for table `orginfo`
--
2004-12-06 14:02:02 +00:00
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 ,
PRIMARY KEY ( ` id ` )
) TYPE = MyISAM ;
2005-01-04 02:33:56 +00:00
--
-- Table structure for table `regions`
--
2004-12-06 14:02:02 +00:00
CREATE TABLE ` regions ` (
` id ` int ( 11 ) NOT NULL auto_increment ,
` ccid ` int ( 11 ) NOT NULL default ' 0 ' ,
` abbr ` char ( 3 ) NOT NULL default ' ' ,
` long ` varchar ( 255 ) NOT NULL default ' ' ,
` type ` varchar ( 255 ) NOT NULL default ' ' ,
PRIMARY KEY ( ` id ` ) ,
UNIQUE KEY ` ccid ` ( ` id ` , ` ccid ` )
) TYPE = MyISAM ;
2005-01-04 02:33:56 +00:00
--
-- Table structure for table `users`
--
2004-12-06 14:02:02 +00:00
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 ( 11 ) NOT NULL default ' 0 ' ,
` regid ` int ( 11 ) NOT NULL default ' 0 ' ,
` locid ` int ( 11 ) NOT NULL default ' 0 ' ,
` listme ` int ( 1 ) NOT NULL default ' 0 ' ,
` codesign ` int ( 1 ) NOT NULL default ' 0 ' ,
` contactinfo ` varchar ( 255 ) NOT NULL default ' ' ,
` admin ` 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 ' ,
PRIMARY KEY ( ` id ` )
) TYPE = MyISAM ;
2005-01-04 02:33:56 +00:00