gitdataai/lib/model/repos/repo_webhook.rs
2026-05-30 01:38:40 +08:00

18 lines
440 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 RepoWebhookModel {
pub id: Uuid,
pub repo: Uuid,
pub url: String,
pub secret_hash: Option<String>,
pub events: String,
pub active: bool,
pub created_by: Uuid,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}