aboutsummaryrefslogtreecommitdiff
path: root/schema.sql
diff options
context:
space:
mode:
Diffstat (limited to 'schema.sql')
-rw-r--r--schema.sql4
1 files changed, 2 insertions, 2 deletions
diff --git a/schema.sql b/schema.sql
index 7e3886f..192b4ad 100644
--- a/schema.sql
+++ b/schema.sql
@@ -5,7 +5,7 @@ CREATE TABLE users (
);
CREATE TABLE sessions (
userid TEXT NOT NULL,
- cookie TEXT,
- expr INTEGER,
+ cookie TEXT PRIMARY KEY NOT NULL,
+ expr INTEGER NOT NULL,
FOREIGN KEY(userid) REFERENCES users(id)
);