use crate::models::common::{Role, Status}; use chrono::{DateTime, Utc}; use serde::{Deserialize, Serialize}; use uuid::Uuid; #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, sqlx::FromRow, utoipa::ToSchema)] pub struct ChannelMember { pub id: Uuid, pub channel_id: Uuid, pub user_id: Uuid, pub role: Role, pub status: Status, pub muted: bool, pub pinned: bool, pub last_read_message_id: Option, pub last_read_at: Option>, pub joined_at: Option>, pub left_at: Option>, pub created_at: DateTime, pub updated_at: DateTime, }