Begin tracking follow states on collab server
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
This commit is contained in:
parent
28786a3c18
commit
d6462c611c
8 changed files with 157 additions and 3 deletions
|
@ -15,6 +15,8 @@ pub enum Relation {
|
|||
RoomParticipant,
|
||||
#[sea_orm(has_many = "super::project::Entity")]
|
||||
Project,
|
||||
#[sea_orm(has_many = "super::follower::Entity")]
|
||||
Follower,
|
||||
}
|
||||
|
||||
impl Related<super::room_participant::Entity> for Entity {
|
||||
|
@ -29,4 +31,10 @@ impl Related<super::project::Entity> for Entity {
|
|||
}
|
||||
}
|
||||
|
||||
impl Related<super::follower::Entity> for Entity {
|
||||
fn to() -> RelationDef {
|
||||
Relation::Follower.def()
|
||||
}
|
||||
}
|
||||
|
||||
impl ActiveModelBehavior for ActiveModel {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue