//! `SeaORM` Entity. Generated by sea-orm-codegen 0.12.11 use sea_orm::entity::prelude::*; use serde::{Deserialize, Serialize}; #[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Serialize, Deserialize)] #[sea_orm(table_name = "django_celery_beat_periodictask")] pub struct Model { #[sea_orm(primary_key)] pub id: i32, pub name: String, pub task: String, #[sea_orm(column_type = "Text")] pub args: String, #[sea_orm(column_type = "Text")] pub kwargs: String, pub queue: Option, pub exchange: Option, pub routing_key: Option, pub expires: Option, pub enabled: bool, pub last_run_at: Option, pub total_run_count: i32, pub date_changed: DateTimeWithTimeZone, #[sea_orm(column_type = "Text")] pub description: String, pub crontab_id: Option, pub interval_id: Option, pub solar_id: Option, pub one_off: bool, pub start_time: Option, pub priority: Option, #[sea_orm(column_type = "Text")] pub headers: String, pub clocked_id: Option, pub expire_seconds: Option, } #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Relation { #[sea_orm( belongs_to = "super::django_celery_beat_clockedschedule::Entity", from = "Column::ClockedId", to = "super::django_celery_beat_clockedschedule::Column::Id", on_update = "NoAction", on_delete = "NoAction" )] DjangoCeleryBeatClockedschedule, #[sea_orm( belongs_to = "super::django_celery_beat_crontabschedule::Entity", from = "Column::CrontabId", to = "super::django_celery_beat_crontabschedule::Column::Id", on_update = "NoAction", on_delete = "NoAction" )] DjangoCeleryBeatCrontabschedule, #[sea_orm( belongs_to = "super::django_celery_beat_intervalschedule::Entity", from = "Column::IntervalId", to = "super::django_celery_beat_intervalschedule::Column::Id", on_update = "NoAction", on_delete = "NoAction" )] DjangoCeleryBeatIntervalschedule, #[sea_orm( belongs_to = "super::django_celery_beat_solarschedule::Entity", from = "Column::SolarId", to = "super::django_celery_beat_solarschedule::Column::Id", on_update = "NoAction", on_delete = "NoAction" )] DjangoCeleryBeatSolarschedule, } impl Related for Entity { fn to() -> RelationDef { Relation::DjangoCeleryBeatClockedschedule.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::DjangoCeleryBeatCrontabschedule.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::DjangoCeleryBeatIntervalschedule.def() } } impl Related for Entity { fn to() -> RelationDef { Relation::DjangoCeleryBeatSolarschedule.def() } } impl ActiveModelBehavior for ActiveModel {}