channel_path.rs

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