17 lines
421 B
Rust
17 lines
421 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 RoomPermissionOverwriteModel {
|
|
pub id: Uuid,
|
|
pub room: Uuid,
|
|
pub target_type: String,
|
|
pub target_id: Uuid,
|
|
pub allow: String,
|
|
pub deny: String,
|
|
pub created_at: DateTime<Utc>,
|
|
pub updated_at: DateTime<Utc>,
|
|
}
|