//! `SeaORM` Entity, @generated by sea-orm-codegen 2.0

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

#[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel, Serialize, Deserialize)]
#[sea_orm(table_name = "reminder_offset")]
#[sea_orm::model]
#[serde(rename_all = "camelCase")]
pub struct Model {
    #[sea_orm(primary_key, auto_increment = false)]
    pub id: Uuid,
    pub target_type: TargetType,
    pub target_id: Uuid,
    pub offset_minutes: i32,
    pub channel_inapp: bool,
    pub channel_bark: bool,
    pub created_at: DateTimeWithTimeZone,
    pub bark_title: Option<String>,
    pub bark_subtitle: Option<String>,
    #[sea_orm(column_type = "Text", nullable)]
    pub bark_body_markdown: Option<String>,
    pub bark_level: Option<String>,
    pub bark_icon: Option<String>,
}

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

impl ActiveModelBehavior for ActiveModel {}
