Add garage add, select, and re-order operations for #14

This commit is contained in:
NGnius (Graham) committed 2025-05-10 13:19:35 -04:00
1 parent e05649f09d
commit 221a5d5ca9
15 files changed
+420 -34

No files matched your search

+12
View File
@@ -4,3 +4,15 @@ use sea_orm::FromQueryResult;
pub struct Id {
pub id: u32,
}
#[derive(FromQueryResult)]
pub struct SingleColumn<T: sea_orm::TryGetable> {
pub column: T,
}
impl <T: sea_orm::TryGetable> std::ops::Deref for SingleColumn<T> {
type Target = T;
fn deref(&self) -> &Self::Target {
&self.column
}
}
+1
View File
@@ -39,4 +39,5 @@ pub enum Descriptor {
UserRank, // u32
UserFreeCurrency, // u64
UserPaidCurrency, // u64
GarageSlotOrder, // Vec<u32>,
}