Implemented database (untested), managed to make actix pass it to routes

This commit is contained in:
2024-03-25 23:26:56 +02:00
parent b18e193173
commit 2cb4acc604
14 changed files with 1125 additions and 19 deletions

0
migrations/.keep Normal file
View File

View File

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

View 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)
)