Add channel visibility columns and protos

This commit is contained in:
Mikayla 2023-10-12 12:21:09 -07:00
parent 540436a1f9
commit 78432d08ca
No known key found for this signature in database
6 changed files with 72 additions and 6 deletions

View file

@ -1,4 +1,4 @@
use crate::db::ChannelId;
use crate::db::{ChannelId, ChannelVisibility};
use sea_orm::entity::prelude::*;
#[derive(Clone, Debug, Default, PartialEq, Eq, DeriveEntityModel)]
@ -7,6 +7,7 @@ pub struct Model {
#[sea_orm(primary_key)]
pub id: ChannelId,
pub name: String,
pub visbility: ChannelVisibility,
}
impl ActiveModelBehavior for ActiveModel {}