1
0
mirror of https://github.com/Yubico/yubikey-val.git synced 2024-11-29 00:24:13 +01:00
yubikey-val/ykval-db.oracle.sql

37 lines
910 B
MySQL
Raw Normal View History

2012-06-12 13:30:41 +02:00
-- I created a new sql file because oracle does not allow boolean type
2015-07-15 16:55:06 +02:00
-- so I used the type NUMBER(1) which is pretty similar
2012-06-12 13:30:41 +02:00
CREATE TABLE clients (
id INT NOT NULL,
active NUMBER(1) DEFAULT 1,
created INT NOT NULL,
secret VARCHAR(60) DEFAULT '',
email VARCHAR(255),
notes VARCHAR(100) DEFAULT '',
otp VARCHAR(100) DEFAULT '',
PRIMARY KEY (id)
);
CREATE TABLE yubikeys (
active NUMBER(1) DEFAULT 1,
created INT NOT NULL,
modified INT NOT NULL,
yk_publicname VARCHAR(16) NOT NULL,
yk_counter INT NOT NULL,
yk_use INT NOT NULL,
yk_low INT NOT NULL,
yk_high INT NOT NULL,
2012-06-13 13:29:40 +02:00
nonce VARCHAR(40) DEFAULT '',
2012-06-12 13:30:41 +02:00
notes VARCHAR(100) DEFAULT '',
PRIMARY KEY (yk_publicname)
);
CREATE TABLE queue (
queued INT DEFAULT NULL,
modified INT DEFAULT NULL,
server_nonce VARCHAR(32) NOT NULL,
otp VARCHAR(100) NOT NULL,
server VARCHAR(100) NOT NULL,
info VARCHAR(256) NOT NULL
);