16 lines
404 B
Rust
16 lines
404 B
Rust
use chrono::{DateTime, Utc};
|
|
use serde::{Deserialize, Serialize};
|
|
use uuid::Uuid;
|
|
|
|
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, sqlx::FromRow)]
|
|
pub struct ChannelCategory {
|
|
pub id: Uuid,
|
|
pub workspace_id: Uuid,
|
|
pub name: String,
|
|
pub position: i32,
|
|
pub collapsed: bool,
|
|
pub created_by: Uuid,
|
|
pub created_at: DateTime<Utc>,
|
|
pub updated_at: DateTime<Utc>,
|
|
}
|