gitdataai/lib/model/channel/room_mention.rs

15 lines
353 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 RoomMentionModel {
pub id: Uuid,
pub message: Uuid,
pub seq: i64,
pub mention_type: String,
pub target_id: String,
pub created_at: DateTime<Utc>,
}