first commit
This commit is contained in:
51
backend_rust/src/entity/sea_orm_active_enums.rs
Normal file
51
backend_rust/src/entity/sea_orm_active_enums.rs
Normal file
@@ -0,0 +1,51 @@
|
||||
//! `SeaORM` Entity, @generated by sea-orm-codegen 2.0
|
||||
|
||||
use sea_orm::entity::prelude::*;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq, EnumIter, DeriveActiveEnum, Serialize, Deserialize)]
|
||||
#[sea_orm(rs_type = "String", db_type = "Enum", enum_name = "channel_type")]
|
||||
pub enum ChannelType {
|
||||
#[sea_orm(string_value = "inapp")]
|
||||
Inapp,
|
||||
#[sea_orm(string_value = "bark")]
|
||||
Bark,
|
||||
}
|
||||
#[derive(Debug, Clone, PartialEq, Eq, EnumIter, DeriveActiveEnum, Serialize, Deserialize)]
|
||||
#[sea_orm(
|
||||
rs_type = "String",
|
||||
db_type = "Enum",
|
||||
enum_name = "notification_status"
|
||||
)]
|
||||
pub enum NotificationStatus {
|
||||
#[sea_orm(string_value = "pending")]
|
||||
Pending,
|
||||
#[sea_orm(string_value = "queued")]
|
||||
Queued,
|
||||
#[sea_orm(string_value = "sent")]
|
||||
Sent,
|
||||
#[sea_orm(string_value = "failed")]
|
||||
Failed,
|
||||
}
|
||||
#[derive(Debug, Clone, PartialEq, Eq, EnumIter, DeriveActiveEnum, Serialize, Deserialize)]
|
||||
#[sea_orm(rs_type = "String", db_type = "Enum", enum_name = "recurrence_type")]
|
||||
pub enum RecurrenceType {
|
||||
#[sea_orm(string_value = "hourly")]
|
||||
Hourly,
|
||||
#[sea_orm(string_value = "daily")]
|
||||
Daily,
|
||||
#[sea_orm(string_value = "weekly")]
|
||||
Weekly,
|
||||
#[sea_orm(string_value = "monthly")]
|
||||
Monthly,
|
||||
#[sea_orm(string_value = "yearly")]
|
||||
Yearly,
|
||||
}
|
||||
#[derive(Debug, Clone, PartialEq, Eq, EnumIter, DeriveActiveEnum, Serialize, Deserialize)]
|
||||
#[sea_orm(rs_type = "String", db_type = "Enum", enum_name = "target_type")]
|
||||
pub enum TargetType {
|
||||
#[sea_orm(string_value = "todo")]
|
||||
Todo,
|
||||
#[sea_orm(string_value = "reminder_task")]
|
||||
ReminderTask,
|
||||
}
|
||||
Reference in New Issue
Block a user