use chrono::{DateTime, Utc};
use serde::{Deserialize, Serialize};
use sqlx::FromRow;
use uuid::Uuid;

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, FromRow)]
pub struct RepoModel {
    pub id: Uuid,
    pub wk: Uuid,
    pub name: String,
    pub description: Option<String>,
    pub default_branch: String,
    pub visibility: String,
    pub size_bytes: i64,
    pub is_archived: bool,
    pub is_template: bool,
    pub is_mirror: bool,
    pub created_by: Uuid,
    pub storage_path: String,
    pub created_at: DateTime<Utc>,
    pub updated_at: DateTime<Utc>,
    pub deleted_at: Option<DateTime<Utc>>,
}
