gitdataai/lib/model/room/room_attachments.rs
2026-05-30 01:38:40 +08:00

19 lines
474 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 RoomAttachmentModel {
pub id: Uuid,
pub message: Uuid,
pub seq: i64,
pub file_name: String,
pub content_type: Option<String>,
pub size_bytes: i64,
pub storage_key: String,
pub url: Option<String>,
pub uploaded_by: Uuid,
pub created_at: DateTime<Utc>,
}