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

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, FromRow)]
pub struct IssueEventModel {
    pub id: Uuid,
    pub issue: Uuid,
    pub actor: Option<Uuid>,
    pub event: String,
    pub from_value: Option<String>,
    pub to_value: Option<String>,
    pub metadata: Option<String>,
    pub created_at: DateTime<Utc>,
}
