jet/crates/entities/src/django_celery_beat_periodictask.rs

43 lines
1.3 KiB
Rust
Raw Normal View History

2024-01-23 12:29:19 +01:00
//! `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<String>,
pub exchange: Option<String>,
pub routing_key: Option<String>,
pub expires: Option<DateTimeWithTimeZone>,
pub enabled: bool,
pub last_run_at: Option<DateTimeWithTimeZone>,
pub total_run_count: i32,
pub date_changed: DateTimeWithTimeZone,
#[sea_orm(column_type = "Text")]
pub description: String,
pub crontab_id: Option<i32>,
pub interval_id: Option<i32>,
pub solar_id: Option<i32>,
pub one_off: bool,
pub start_time: Option<DateTimeWithTimeZone>,
pub priority: Option<i32>,
#[sea_orm(column_type = "Text")]
pub headers: String,
pub clocked_id: Option<i32>,
pub expire_seconds: Option<i32>,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {}
impl ActiveModelBehavior for ActiveModel {}