- Add ArticleFeed component for article-based channels - Implement ArticleComposer with draft persistence - Add Newspaper icon for article room type - Update ChannelPage to conditionally render article feed vs message view - Add article-related API endpoints and models - Reset thread view when switching rooms - Add room type check in channel sidebar - Update CSS to hide scrollbars globally - Add gRPC message size limit configuration - Fix git diff tree handling
19 lines
474 B
Rust
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>,
|
|
}
|