summaryrefslogtreecommitdiff
path: root/migrations/001_create_users_table.up.sql
diff options
context:
space:
mode:
Diffstat (limited to 'migrations/001_create_users_table.up.sql')
-rw-r--r--migrations/001_create_users_table.up.sql9
1 files changed, 9 insertions, 0 deletions
diff --git a/migrations/001_create_users_table.up.sql b/migrations/001_create_users_table.up.sql
new file mode 100644
index 0000000..bce2771
--- /dev/null
+++ b/migrations/001_create_users_table.up.sql
@@ -0,0 +1,9 @@
+CREATE TABLE users (
+ id UUID PRIMARY KEY,
+ name TEXT NOT NULL UNIQUE,
+ password TEXT NOT NULL,
+ admin BOOLEAN NOT NULL DEFAULT false,
+ token VARCHAR(36),
+ created_at TIMESTAMP DEFAULT now(),
+ last_updated TIMESTAMP DEFAULT now()
+);