22 lines
556 B
Rust
22 lines
556 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 RoomModel {
|
|
pub id: Uuid,
|
|
pub wk: Uuid,
|
|
pub parent: Option<Uuid>,
|
|
pub name: String,
|
|
pub topic: Option<String>,
|
|
pub room_type: String,
|
|
pub position: i32,
|
|
pub is_private: bool,
|
|
pub is_archived: bool,
|
|
pub created_by: Uuid,
|
|
pub created_at: DateTime<Utc>,
|
|
pub updated_at: DateTime<Utc>,
|
|
pub deleted_at: Option<DateTime<Utc>>,
|
|
}
|