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

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, FromRow)]
pub struct PullRequestReviewCommentModel {
    pub id: Uuid,
    pub pull_request: Uuid,
    pub review: Option<Uuid>,
    pub author: Uuid,
    pub body: String,
    pub path: String,
    pub commit_sha: String,
    pub original_commit_sha: Option<String>,
    pub line: Option<i32>,
    pub original_line: Option<i32>,
    pub side: Option<String>,
    pub resolved: bool,
    pub resolved_by: Option<Uuid>,
    pub resolved_at: Option<DateTime<Utc>>,
    pub created_at: DateTime<Utc>,
    pub updated_at: DateTime<Utc>,
    pub deleted_at: Option<DateTime<Utc>>,
}
