Files
gitks/models/channels/channel_repo_links.rs
T
2026-06-07 11:30:56 +08:00

18 lines
495 B
Rust

use crate::models::common::{EventType, LinkType};
use chrono::{DateTime, Utc};
use serde::{Deserialize, Serialize};
use uuid::Uuid;
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, sqlx::FromRow)]
pub struct ChannelRepoLink {
pub id: Uuid,
pub channel_id: Uuid,
pub repo_id: Uuid,
pub link_type: LinkType,
pub notify_events: Vec<EventType>,
pub active: bool,
pub created_by: Uuid,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}