2009-02-25 12:20:53 +00:00
|
|
|
CREATE TABLE clients (
|
2009-04-27 18:46:05 +00:00
|
|
|
id INT NOT NULL AUTO_INCREMENT,
|
|
|
|
active BOOLEAN DEFAULT TRUE,
|
2010-01-08 13:54:33 +00:00
|
|
|
created INT NOT NULL,
|
2009-04-27 18:46:05 +00:00
|
|
|
secret VARCHAR(60) NOT NULL DEFAULT '',
|
2009-05-06 14:16:43 +00:00
|
|
|
email VARCHAR(255),
|
2009-08-28 12:07:35 +00:00
|
|
|
notes VARCHAR(100) DEFAULT '',
|
2009-08-28 12:08:20 +00:00
|
|
|
otp VARCHAR(100) DEFAULT '',
|
2009-04-27 18:46:05 +00:00
|
|
|
PRIMARY KEY (id)
|
2009-02-25 12:20:53 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
CREATE TABLE yubikeys (
|
2009-04-27 18:46:05 +00:00
|
|
|
id INT NOT NULL UNIQUE AUTO_INCREMENT,
|
|
|
|
active BOOLEAN DEFAULT TRUE,
|
2010-01-08 13:54:33 +00:00
|
|
|
created INT NOT NULL,
|
|
|
|
modified INT NOT NULL,
|
|
|
|
yk_publicname VARCHAR(16) UNIQUE NOT NULL COLLATE ascii_bin,
|
|
|
|
yk_internalname VARCHAR(12) NOT NULL COLLATE ascii_bin,
|
|
|
|
yk_counter INT NOT NULL,
|
|
|
|
yk_use INT NOT NULL,
|
|
|
|
yk_low INT,
|
|
|
|
yk_high INT,
|
|
|
|
nonce VARCHAR(32) DEFAULT '',
|
2009-08-28 12:07:35 +00:00
|
|
|
notes VARCHAR(100) DEFAULT '',
|
2009-04-27 18:46:05 +00:00
|
|
|
PRIMARY KEY (id)
|
2009-02-25 12:20:53 +00:00
|
|
|
);
|
2009-04-27 18:52:05 +00:00
|
|
|
|
2009-11-25 10:37:37 +00:00
|
|
|
CREATE TABLE queue (
|
|
|
|
id INT NOT NULL UNIQUE AUTO_INCREMENT,
|
2010-01-08 13:54:33 +00:00
|
|
|
queued INT DEFAULT NULL,
|
|
|
|
modified INT DEFAULT NULL,
|
2009-12-04 11:57:49 +00:00
|
|
|
random_key INT,
|
2009-11-25 14:15:13 +00:00
|
|
|
otp VARCHAR(100) NOT NULL,
|
2009-11-25 10:37:37 +00:00
|
|
|
server VARCHAR(100) NOT NULL,
|
2009-12-07 15:31:33 +00:00
|
|
|
info VARCHAR(256) NOT NULL,
|
2009-11-25 10:37:37 +00:00
|
|
|
PRIMARY KEY (id)
|
|
|
|
);
|