Start DB integration

This commit is contained in:
Lol3rrr
2024-09-07 17:44:57 +02:00
parent 324eaf7d3d
commit ae6c1b590f
18 changed files with 680 additions and 53 deletions

14
backend/src/schema.rs Normal file
View File

@@ -0,0 +1,14 @@
diesel::table! {
sessions (id) {
id -> Array<BigInt>,
data -> Jsonb,
expiry_date -> Text,
}
}
diesel::table! {
demos (steam_id) {
steam_id -> BigInt,
demo_id -> BigInt
}
}