Get join_buffer_for_channel compiling
Co-authored-by: Mikayla <mikayla@zed.dev>
This commit is contained in:
parent
364ed1f840
commit
71611ee7a2
6 changed files with 73 additions and 65 deletions
|
@ -1,4 +1,4 @@
|
|||
use crate::db::{BufferId, ChannelId};
|
||||
use crate::db::ChannelId;
|
||||
use sea_orm::entity::prelude::*;
|
||||
|
||||
#[derive(Clone, Debug, Default, PartialEq, Eq, DeriveEntityModel)]
|
||||
|
@ -15,7 +15,7 @@ impl ActiveModelBehavior for ActiveModel {}
|
|||
pub enum Relation {
|
||||
#[sea_orm(has_one = "super::room::Entity")]
|
||||
Room,
|
||||
#[sea_orm(has_one = "super::room::Entity")]
|
||||
#[sea_orm(has_one = "super::buffer::Entity")]
|
||||
Buffer,
|
||||
#[sea_orm(has_many = "super::channel_member::Entity")]
|
||||
Member,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue