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

18 lines
432 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 RepoRefModel {
pub id: Uuid,
pub repo: Uuid,
pub name: String,
pub kind: String,
pub target_sha: String,
pub is_default: bool,
pub is_protected: bool,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}