use chrono::{DateTime, Utc};
use serde::{Deserialize, Serialize};
use sqlx::FromRow;
use uuid::Uuid;
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, FromRow)]
pub struct UserRoomStateModel {
    pub id: Uuid,
    pub user: Uuid,
    pub room: Uuid,
    pub last_read_seq: i64,
    pub last_read_at: Option<DateTime<Utc>>,
    pub is_pinned: bool,
    pub is_muted: bool,
    pub hide_muted: bool,
    pub notify_level: String,
    pub created_at: DateTime<Utc>,
    pub updated_at: DateTime<Utc>,
}
