added more db stuff, NOT WORKING
This commit is contained in:
2
migrations/users/down.sql
Normal file
2
migrations/users/down.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
-- This file should undo anything in `up.sql`
|
||||
DROP TABLE Users
|
||||
9
migrations/users/up.sql
Normal file
9
migrations/users/up.sql
Normal 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)
|
||||
)
|
||||
Reference in New Issue
Block a user