From 8332a0471ff0454fd8af2fe4a58d31fcf1e58fcb Mon Sep 17 00:00:00 2001 From: pilcrowOnPaper Date: Fri, 4 Oct 2024 10:28:58 +0900 Subject: [PATCH] update sql --- setup.sql | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setup.sql b/setup.sql index ac81d95..b18af5b 100644 --- a/setup.sql +++ b/setup.sql @@ -7,6 +7,8 @@ CREATE TABLE user ( recovery_code BLOB NOT NULL ); +CREATE INDEX email_index ON user(email); + CREATE TABLE session ( id TEXT NOT NULL PRIMARY KEY, user_id INTEGER NOT NULL REFERENCES user(id), @@ -19,8 +21,7 @@ CREATE TABLE email_verification_request ( user_id INTEGER NOT NULL REFERENCES user(id), email TEXT NOT NULL, code TEXT NOT NULL, - expires_at INTEGER NOT NULL, - email_verified INTEGER NOT NULL NOT NULL DEFAULT 0 + expires_at INTEGER NOT NULL ); CREATE TABLE password_reset_session (