Portfolio/entity/src/parent.rs
2022-10-24 14:15:04 +02:00

23 lines
740 B
Rust

//! SeaORM Entity. Generated by sea-orm-codegen 0.10.0
use sea_orm::entity::prelude::*;
use chrono::{DateTime, Local};
use rocket::serde::{Deserialize, Serialize};
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Serialize, Deserialize)]
#[serde(crate = "rocket::serde")]
#[sea_orm(table_name = "parent")]
pub struct Model {
#[sea_orm(primary_key, auto_increment = false)]
pub application: i32,
pub name: Option<String>,
pub surname: Option<String>,
pub telephone: Option<String>,
pub email: Option<String>,
pub created_at: DateTime<Local>,
pub updated_at: DateTime<Local>,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {}
impl ActiveModelBehavior for ActiveModel {}