mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-02-01 01:52:18 +01:00
sql for initing oracle
This commit is contained in:
parent
9e9f20b959
commit
97757fc36e
36
ykval-db.oracle.sql
Normal file
36
ykval-db.oracle.sql
Normal file
@ -0,0 +1,36 @@
|
||||
-- I created a new sql file because oracle does not allow boolean type
|
||||
-- so I used the type NUMBER(1) which is pretty similar
|
||||
|
||||
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,
|
||||
nonce VARCHAR(32) DEFAULT '',
|
||||
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
|
||||
);
|
Loading…
x
Reference in New Issue
Block a user