forked from Ruderverein-Donau-Linz/rowt
initial push
This commit is contained in:
19
src/models/day.rs
Normal file
19
src/models/day.rs
Normal file
@ -0,0 +1,19 @@
|
||||
//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.0
|
||||
|
||||
use sea_orm::entity::prelude::*;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Serialize, Deserialize)]
|
||||
#[sea_orm(table_name = "day")]
|
||||
pub struct Model {
|
||||
#[sea_orm(primary_key, auto_increment = false)]
|
||||
pub day: chrono::NaiveDate,
|
||||
pub planned_amount_cox: Option<i32>,
|
||||
pub planned_starting_time: Option<String>,
|
||||
pub open_registration: bool,
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
||||
pub enum Relation {}
|
||||
|
||||
impl ActiveModelBehavior for ActiveModel {}
|
5
src/models/mod.rs
Normal file
5
src/models/mod.rs
Normal file
@ -0,0 +1,5 @@
|
||||
//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.0
|
||||
|
||||
pub mod prelude;
|
||||
|
||||
pub mod day;
|
3
src/models/prelude.rs
Normal file
3
src/models/prelude.rs
Normal file
@ -0,0 +1,3 @@
|
||||
//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.0
|
||||
|
||||
pub use super::day::Entity as Day;
|
Reference in New Issue
Block a user