21 lines
553 B
Rust
21 lines
553 B
Rust
use chrono::{DateTime, Utc};
|
|
use serde::{Deserialize, Serialize};
|
|
use sqlx::FromRow;
|
|
use uuid::Uuid;
|
|
|
|
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, FromRow)]
|
|
pub struct RoomThreadModel {
|
|
pub id: Uuid,
|
|
pub room: Uuid,
|
|
pub seq: i64,
|
|
pub starter_message: Option<Uuid>,
|
|
pub title: String,
|
|
pub created_by: Uuid,
|
|
pub archived: bool,
|
|
pub locked: bool,
|
|
pub last_message_at: Option<DateTime<Utc>>,
|
|
pub created_at: DateTime<Utc>,
|
|
pub updated_at: DateTime<Utc>,
|
|
pub archived_at: Option<DateTime<Utc>>,
|
|
}
|