Initial implementation of db stuffs

Got the migrations and datastructures in. Next step is building db
utility function into the db module or client module
This commit is contained in:
2026-05-18 14:54:57 -07:00
parent 907c6a8fb0
commit c92ee309a9
21 changed files with 262 additions and 1 deletions
Generated
+28
View File
@@ -229,6 +229,7 @@ dependencies = [
"ctrlc-async",
"diesel",
"diesel-async",
"diesel-derive-composite",
"fedichat",
"quinn",
"rmp-serde",
@@ -246,6 +247,15 @@ version = "0.10.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a6ef517f0926dd24a1582492c791b6a4818a4d94e789a334894aa15b0d12f55c"
[[package]]
name = "convert_case"
version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "baaaa0ecca5b51987b9423ccdc971514dd8b0bb7b4060b983d3664dad3f1f89f"
dependencies = [
"unicode-segmentation",
]
[[package]]
name = "core-foundation"
version = "0.10.1"
@@ -390,6 +400,18 @@ dependencies = [
"tokio-postgres",
]
[[package]]
name = "diesel-derive-composite"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a634241e758e588c8deb76cc44f0b605b46536aa769946446b6afd4956c7f2e8"
dependencies = [
"convert_case",
"darling",
"quote",
"syn",
]
[[package]]
name = "diesel_derives"
version = "2.3.9"
@@ -1778,6 +1800,12 @@ version = "0.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7df058c713841ad818f1dc5d3fd88063241cc61f49f5fbea4b951e8cf5a8d71d"
[[package]]
name = "unicode-segmentation"
version = "1.13.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9629274872b2bfaf8d66f5f15725007f635594914870f65218920345aa11aa8c"
[[package]]
name = "unicode-xid"
version = "0.2.6"