-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
43 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
//! SeaORM Entity. Generated by sea-orm-codegen 0.10.0 | ||
use chrono::{DateTime, NaiveDate, Local}; | ||
use rocket::serde::{Deserialize, Serialize}; | ||
use sea_orm::entity::prelude::*; | ||
|
||
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Serialize, Deserialize)] | ||
#[serde(crate = "rocket::serde")] | ||
#[sea_orm(table_name = "candidate")] | ||
pub struct Model { | ||
#[sea_orm(primary_key, auto_increment = false)] | ||
pub application: i32, | ||
pub code: String, | ||
pub name: Option<String>, | ||
pub surname: Option<String>, | ||
pub birth_surname: Option<String>, | ||
pub birthplace: Option<String>, | ||
pub birthdate: Option<NaiveDate>, | ||
pub address: Option<String>, | ||
pub telephone: Option<String>, | ||
pub citizenship: Option<String>, | ||
pub email: Option<String>, | ||
pub sex: Option<String>, | ||
pub study: Option<String>, | ||
pub personal_identification_number: Option<String>, | ||
#[sea_orm(column_type = "Text")] | ||
pub personal_identification_number_hash: Option<String>, | ||
pub public_key: String, | ||
pub private_key: String, | ||
pub created_at: DateTime<Local>, | ||
pub updated_at: DateTime<Local>, | ||
} | ||
|
||
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] | ||
pub enum Relation {} | ||
|
||
impl ActiveModelBehavior for ActiveModel {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
#[macro_use] | ||
extern crate rocket; | ||
|
||
pub mod post; | ||
pub mod prelude; | ||
|
||
pub mod admin; | ||
pub mod candidate; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
//! SeaORM Entity. Generated by sea-orm-codegen 0.9.3 | ||
pub use super::admin::Entity as Admin; | ||
pub use super::candidate::Entity as Candidate; |