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:
@@ -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 {}
|
||||
|
||||
Reference in New Issue
Block a user