18 lines
495 B
Rust
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>,
|
|
}
|