use chrono::{DateTime, Utc};
use sea_orm::entity::prelude::*;
use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel, Serialize, Deserialize)]
#[sea_orm(table_name = "otp_preferences")]
pub struct Model {
#[sea_orm(primary_key)]
pub id: i64,
pub created_at: Option<DateTime<Utc>>,
pub updated_at: Option<DateTime<Utc>>,
pub sms_otp_template_id: String,
pub otp_template_id: String,
pub msg91_auth_key: String,
pub sms_otp_field_name: String,
pub sms_otp_extra_fields: String,
pub email_otp_template_string: String,
pub smtp_host: String,
pub smtp_port: String,
pub smtp_username: String,
pub smtp_password: String,
pub smtp_from: String,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {}
impl ActiveModelBehavior for ActiveModel {}
pub type OtpPreferences = Model;