summaryrefslogtreecommitdiff
path: root/database.txt
diff options
context:
space:
mode:
authorBenji Dial <benji@benjidial.net>2024-02-07 19:04:23 -0500
committerBenji Dial <benji@benjidial.net>2024-02-07 19:04:23 -0500
commit7b89b4cd703ee1123f01e3ddba0ae24911baf410 (patch)
treeaf4614d64b195b62b445591d020beb9391d644b9 /database.txt
downloadvoting-site-7b89b4cd703ee1123f01e3ddba0ae24911baf410.tar.gz
first commit
Diffstat (limited to 'database.txt')
-rw-r--r--database.txt19
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
+)