use sea_orm::entity::prelude::*;
use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Serialize, Deserialize)]
#[sea_orm(table_name = "batches")]
pub struct Model {
#[sea_orm(primary_key, auto_increment = false)]
pub id: String,
pub object: String,
pub endpoint: String,
pub input_file_id: Option<String>,
pub completion_window: String,
pub status: String,
pub output_file_id: Option<String>,
pub error_file_id: Option<String>,
pub created_at: DateTimeWithTimeZone,
pub in_progress_at: Option<DateTimeWithTimeZone>,
pub finalizing_at: Option<DateTimeWithTimeZone>,
pub completed_at: Option<DateTimeWithTimeZone>,
pub failed_at: Option<DateTimeWithTimeZone>,
pub expired_at: Option<DateTimeWithTimeZone>,
pub cancelling_at: Option<DateTimeWithTimeZone>,
pub cancelled_at: Option<DateTimeWithTimeZone>,
pub request_counts_total: Option<i32>,
pub request_counts_completed: Option<i32>,
pub request_counts_failed: Option<i32>,
pub metadata: Option<String>,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {}
impl ActiveModelBehavior for ActiveModel {}