feat: got sqlx working

This commit is contained in:
Andrew Rioux
2025-01-24 11:48:15 -05:00
parent 6e99dc3d70
commit 8695685eb3
19 changed files with 1071 additions and 49 deletions

View File

@@ -0,0 +1,16 @@
-- Add migration script here
CREATE TABLE users (
user_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
user_name varchar(255) NOT NULL,
password_salt char(64) NOT NULL,
password_hash char(64) NOT NULL
);
CREATE TABLE sessions (
session_id char(64) NOT NULL,
user_id int NOT NULL,
expires int NOT NULL,
PRIMARY KEY (session_id),
FOREIGN KEY (user_id) REFERENCES users
);