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