2009-04-27 20:46:05 +02:00
|
|
|
-- DROP DATABASE ykval;
|
|
|
|
CREATE DATABASE ykval;
|
|
|
|
USE ykval;
|
2009-02-25 13:20:53 +01:00
|
|
|
|
|
|
|
CREATE TABLE clients (
|
2009-04-27 20:46:05 +02:00
|
|
|
id INT NOT NULL AUTO_INCREMENT,
|
|
|
|
active BOOLEAN DEFAULT TRUE,
|
|
|
|
created DATETIME NOT NULL,
|
|
|
|
email VARCHAR(255) NOT NULL DEFAULT '',
|
|
|
|
secret VARCHAR(60) NOT NULL DEFAULT '',
|
|
|
|
chk_time BOOLEAN DEFAULT TRUE,
|
|
|
|
PRIMARY KEY (id)
|
2009-02-25 13:20:53 +01:00
|
|
|
);
|
|
|
|
|
|
|
|
CREATE TABLE yubikeys (
|
2009-04-27 20:46:05 +02:00
|
|
|
id INT NOT NULL UNIQUE AUTO_INCREMENT,
|
|
|
|
active BOOLEAN DEFAULT TRUE,
|
|
|
|
created DATETIME NOT NULL,
|
|
|
|
accessed DATETIME,
|
|
|
|
publicName VARCHAR(16) UNIQUE NOT NULL,
|
|
|
|
internalName VARCHAR(12) NOT NULL,
|
|
|
|
counter INT,
|
|
|
|
low INT,
|
|
|
|
high INT,
|
|
|
|
sessionUse INT,
|
|
|
|
PRIMARY KEY (id)
|
2009-02-25 13:20:53 +01:00
|
|
|
);
|