X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=doc%2FtableStructure.sql;h=a6f78ed00acdcc9987c4c09e21478caf82721f9c;hb=52861b747c9687ec8050e73b7c8c7294024634ab;hp=cf46d04279689851c1696f9b3f639fbd57b596c8;hpb=9ce0b33f7a6bb10acaa3d74889dbb836a2ec34ad;p=gigi.git diff --git a/doc/tableStructure.sql b/doc/tableStructure.sql index cf46d042..a6f78ed0 100644 --- a/doc/tableStructure.sql +++ b/doc/tableStructure.sql @@ -14,13 +14,10 @@ CREATE TABLE `users` ( `locid` int(7) NOT NULL DEFAULT '0', `listme` 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 '', `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', - `assurer_blocked` tinyint(1) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `ccid` (`ccid`), KEY `regid` (`regid`), @@ -67,7 +64,7 @@ DROP TABLE IF EXISTS `emailPinglog`; CREATE TABLE `emailPinglog` ( `when` datetime NOT NULL, `uid` int(11) NOT NULL, - `emailid` int(11) NOT NULL, + `email` varchar(255) NOT NULL, `type` enum('fast', 'active') NOT NULL, `status` enum('open', 'success', 'failed') NOT NULL, `result` varchar(255) NOT NULL @@ -128,7 +125,7 @@ CREATE TABLE `certs` ( `memid` int(11) NOT NULL DEFAULT '0', `serial` varchar(50) NOT NULL DEFAULT '', `CN` varchar(255) NOT NULL DEFAULT '', - `subject` text NOT NULL, + `subject` varchar(1024) NOT NULL, `keytype` char(2) NOT NULL DEFAULT 'NS', `codesign` tinyint(1) NOT NULL DEFAULT '0', `md` enum('md5','sha1','sha256','sha512') NOT NULL DEFAULT 'sha512', @@ -274,7 +271,7 @@ DROP TABLE IF EXISTS `user_groups`; CREATE TABLE IF NOT EXISTS `user_groups` ( `id` int(11) NOT NULL AUTO_INCREMENT, `user` int(11) NOT NULL, - `permission` enum('supporter','arbitrator','blockedassuree','blockedassurer','ttp-assuer','ttp-applicant', 'codesigning') NOT NULL, + `permission` enum('supporter','arbitrator','blockedassuree','blockedassurer','blockedlogin','ttp-assurer','ttp-applicant', 'codesigning') NOT NULL, `granted` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `deleted` timestamp NULL DEFAULT NULL, `grantedby` int(11) NOT NULL,