//! `SeaORM` Entity, manually maintained

use sea_orm::entity::prelude::*;
use serde::{Deserialize, Serialize};

#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Serialize, Deserialize)]
#[sea_orm(table_name = "comment_persona_analysis_logs")]
pub struct Model {
    pub created_at: DateTimeWithTimeZone,
    pub updated_at: DateTimeWithTimeZone,
    #[sea_orm(primary_key)]
    pub id: i32,
    pub matcher_type: String,
    pub matcher_value: String,
    pub from_at: Option<DateTimeWithTimeZone>,
    pub to_at: Option<DateTimeWithTimeZone>,
    pub total_comments: i32,
    pub pending_comments: i32,
    pub distinct_posts: i32,
    #[sea_orm(column_type = "Text")]
    pub analysis_text: String,
    pub sample_json: Option<Json>,
}

#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {}

impl ActiveModelBehavior for ActiveModel {}
