16 lines
429 B
Rust
16 lines
429 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 DmConversationModel {
|
|
pub id: Uuid,
|
|
pub room: Uuid,
|
|
pub initiator: Uuid,
|
|
pub recipient: Uuid,
|
|
pub is_closed: bool,
|
|
pub closed_at: Option<DateTime<Utc>>,
|
|
pub created_at: DateTime<Utc>,
|
|
pub updated_at: DateTime<Utc>,
|
|
}
|