1
0
mirror of https://git.ngram.ca/OpenJam/rc-servers synced 2026-08-23 23:08:52 +00:00

Implement factory in main database, close #80

This commit is contained in:
NG (Graham)
2026-02-01 18:14:16 -05:00
parent a346299de8
commit 3b909327d8
33 changed files with 741 additions and 78 deletions

View File

@@ -25,6 +25,8 @@ pub enum Relation {
Campaigns,
#[sea_orm(has_many = "super::multiplayer_game_player::Entity")]
Player,
#[sea_orm(has_many = "super::factory::vehicle::Entity")]
FactoryUploads,
}
impl Related<super::permissions::Entity> for Entity {
@@ -57,4 +59,10 @@ impl Related<super::multiplayer_game_player::Entity> for Entity {
}
}
impl Related<super::factory::vehicle::Entity> for Entity {
fn to() -> RelationDef {
Relation::FactoryUploads.def()
}
}
impl ActiveModelBehavior for ActiveModel {}