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