added more db stuff, NOT WORKING

This commit is contained in:
2024-03-30 02:52:46 +02:00
parent c35de0642e
commit 4bd3425b1b
17 changed files with 547 additions and 8 deletions

View File

@@ -0,0 +1,2 @@
-- This file should undo anything in `up.sql`
DROP TABLE Users

9
migrations/users/up.sql Normal file
View File

@@ -0,0 +1,9 @@
CREATE TABLE IF NOT EXISTS Users (
id UUID NOT NULL UNIQUE,
email TEXT NOT NULL,
username TEXT NOT NULL,
pw_hash TEXT NOT NULL,
permissions BIGINT NOT NULL,
PRIMARY KEY (id)
)