diff options
author | Benji Dial <benji@benjidial.net> | 2024-02-07 19:04:23 -0500 |
---|---|---|
committer | Benji Dial <benji@benjidial.net> | 2024-02-07 19:04:23 -0500 |
commit | 7b89b4cd703ee1123f01e3ddba0ae24911baf410 (patch) | |
tree | af4614d64b195b62b445591d020beb9391d644b9 /database.txt | |
download | voting-site-7b89b4cd703ee1123f01e3ddba0ae24911baf410.tar.gz |
first commit
Diffstat (limited to 'database.txt')
-rw-r--r-- | database.txt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/database.txt b/database.txt new file mode 100644 index 0000000..c591fb1 --- /dev/null +++ b/database.txt @@ -0,0 +1,19 @@ +the following tables exist in the database: + +CREATE TABLE users ( + user_id TEXT PRIMARY KEY, + email TEXT UNIQUE NOT NULL, + email_verified INTEGER NOT NULL +) + +CREATE TABLE signin_keys ( + user_id TEXT PRIMARY KEY, + key TEXT NOT NULL, + expires INTEGER NOT NULL +) + +CREATE TABLE sessions ( + session_id TEXT PRIMARY KEY + user_id TEXT UNIQUE NOT NULL, + expires INTEGER NOT NULL +) |