feat: init

This commit is contained in:
zhenyi
2026-06-07 11:30:56 +08:00
commit 563381c1ca
361 changed files with 41327 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
use chrono::{DateTime, Utc};
use serde::{Deserialize, Serialize};
use uuid::Uuid;
/// Real-time voice/video channel participant state.
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, sqlx::FromRow)]
pub struct VoiceParticipant {
pub id: Uuid,
pub channel_id: Uuid,
pub user_id: Uuid,
pub session_id: Option<String>,
pub deafened: bool,
pub muted: bool,
pub self_deafened: bool,
pub self_muted: bool,
pub self_video: bool,
pub streaming: bool,
pub speaking: bool,
pub joined_at: DateTime<Utc>,
pub left_at: Option<DateTime<Utc>>,
}