initial push

This commit is contained in:
2023-02-08 16:25:06 +01:00
parent dcf260ca4a
commit 9fd0481f73
22 changed files with 6473 additions and 89 deletions

19
src/models/day.rs Normal file
View 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
View 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
View File

@ -0,0 +1,3 @@
//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.0
pub use super::day::Entity as Day;