feat: fully replace database operations with diesel

This commit is contained in:
Jef Roosens 2025-01-16 15:00:26 +01:00
parent d0ecb9357a
commit c7dc68926b
No known key found for this signature in database
GPG key ID: 21FD3D77D56BAF49
16 changed files with 227 additions and 224 deletions

View file

@ -1,5 +1,5 @@
create table users (
id bigint primary key not null,
id integer primary key not null,
username text unique not null,
password_hash text not null,
admin boolean not null
@ -7,7 +7,7 @@ create table users (
create table sessions (
id bigint primary key not null,
user_id bigint not null
user_id integer not null
references users (id)
on delete cascade,
unique (id, user_id)