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

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, FromRow)]
pub struct RepoCommitModel {
    pub id: Uuid,
    pub repo: Uuid,
    pub sha: String,
    pub tree_sha: String,
    pub parent_shas: String,
    pub author: Uuid,
    pub committer: Uuid,
    pub message: String,
    pub authored_at: DateTime<Utc>,
    pub committed_at: DateTime<Utc>,
    pub created_at: DateTime<Utc>,
}
