Implemented database (untested), managed to make actix pass it to routes
This commit is contained in:
0
migrations/.keep
Normal file
0
migrations/.keep
Normal file
2
migrations/2024-03-25-183335_users/down.sql
Normal file
2
migrations/2024-03-25-183335_users/down.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
-- This file should undo anything in `up.sql`
|
||||
DROP TABLE Users
|
||||
9
migrations/2024-03-25-183335_users/up.sql
Normal file
9
migrations/2024-03-25-183335_users/up.sql
Normal file
@@ -0,0 +1,9 @@
|
||||
-- Your SQL goes here
|
||||
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