channel_parent.rs

 1use super::ChannelId;
 2use sea_orm::entity::prelude::*;
 3
 4#[derive(Clone, Debug, Default, PartialEq, Eq, DeriveEntityModel)]
 5#[sea_orm(table_name = "channel_parents")]
 6pub struct Model {
 7    #[sea_orm(primary_key)]
 8    pub child_id: ChannelId,
 9    #[sea_orm(primary_key)]
10    pub parent_id: ChannelId,
11}
12
13impl ActiveModelBehavior for ActiveModel {}
14
15#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
16pub enum Relation {}