feat: init
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
use crate::models::common::StagePrivacyLevel;
|
||||
use chrono::{DateTime, Utc};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use uuid::Uuid;
|
||||
|
||||
/// Voice stage — similar to Discord Stage Channel.
|
||||
/// Only one active stage instance per channel at a time.
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, sqlx::FromRow)]
|
||||
pub struct Stage {
|
||||
pub id: Uuid,
|
||||
pub channel_id: Uuid,
|
||||
pub topic: String,
|
||||
pub privacy_level: StagePrivacyLevel,
|
||||
pub discoverable: bool,
|
||||
pub started_by: Uuid,
|
||||
pub started_at: DateTime<Utc>,
|
||||
pub ended_at: Option<DateTime<Utc>>,
|
||||
pub created_at: DateTime<Utc>,
|
||||
pub updated_at: DateTime<Utc>,
|
||||
}
|
||||
Reference in New Issue
Block a user