summaryrefslogtreecommitdiffabout
path: root/test/OP-db.sql
authorMichael Krelin <hacker@klever.net>2008-02-03 16:18:47 (UTC)
committer Michael Krelin <hacker@klever.net>2008-02-03 16:18:47 (UTC)
commit7ee5acb351f43fa650de138f8d2a3bda73ab27a0 (patch) (side-by-side diff)
treef7e748688c620eebb767d83fbb70246e37fa1b62 /test/OP-db.sql
parent434d42b37ecab09fc91ac8e6c752d3292c10a3b1 (diff)
downloadlibopkele-7ee5acb351f43fa650de138f8d2a3bda73ab27a0.zip
libopkele-7ee5acb351f43fa650de138f8d2a3bda73ab27a0.tar.gz
libopkele-7ee5acb351f43fa650de138f8d2a3bda73ab27a0.tar.bz2
added test OP
Signed-off-by: Michael Krelin <hacker@klever.net>
Diffstat (limited to 'test/OP-db.sql') (more/less context) (ignore whitespace changes)
-rw-r--r--test/OP-db.sql25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/OP-db.sql b/test/OP-db.sql
new file mode 100644
index 0000000..424b5ff
--- a/dev/null
+++ b/test/OP-db.sql
@@ -0,0 +1,25 @@
+CREATE TABLE assoc (
+ a_op text,
+ a_handle text NOT NULL,
+ a_type text DEFAULT 'HMAC-SHA1',
+ a_ctime text NOT NULL,
+ a_etime text NOT NULL,
+ a_secret text NOT NULL,
+ a_stateless integer NOT NULL DEFAULT 0,
+ a_itime integer,
+ UNIQUE(a_op,a_handle)
+);
+
+CREATE TABLE nonces (
+ n_once text NOT NULL PRIMARY KEY,
+ n_itime integer
+);
+
+CREATE TABLE setup (
+ s_password text
+);
+
+CREATE TABLE ht_sessions (
+ hts_id text NOT NULL PRIMARY KEY,
+ authorized integer NOT NULL DEFAULT 0
+);