mirror of
https://github.com/BradNut/example-sveltekit-email-password-webauthn
synced 2025-09-08 17:40:27 +00:00
update sql
This commit is contained in:
parent
eb044c423f
commit
8332a0471f
1 changed files with 3 additions and 2 deletions
|
|
@ -7,6 +7,8 @@ CREATE TABLE user (
|
||||||
recovery_code BLOB NOT NULL
|
recovery_code BLOB NOT NULL
|
||||||
);
|
);
|
||||||
|
|
||||||
|
CREATE INDEX email_index ON user(email);
|
||||||
|
|
||||||
CREATE TABLE session (
|
CREATE TABLE session (
|
||||||
id TEXT NOT NULL PRIMARY KEY,
|
id TEXT NOT NULL PRIMARY KEY,
|
||||||
user_id INTEGER NOT NULL REFERENCES user(id),
|
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),
|
user_id INTEGER NOT NULL REFERENCES user(id),
|
||||||
email TEXT NOT NULL,
|
email TEXT NOT NULL,
|
||||||
code TEXT NOT NULL,
|
code TEXT NOT NULL,
|
||||||
expires_at INTEGER NOT NULL,
|
expires_at INTEGER NOT NULL
|
||||||
email_verified INTEGER NOT NULL NOT NULL DEFAULT 0
|
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE TABLE password_reset_session (
|
CREATE TABLE password_reset_session (
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue