From ae89d23585123619a4915cd1c4f03dce78fdde09 Mon Sep 17 00:00:00 2001 From: EETagent Date: Mon, 24 Oct 2022 12:39:22 +0200 Subject: [PATCH] fix: default value pro citizenship --- entity/src/candidate.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entity/src/candidate.rs b/entity/src/candidate.rs index 9c14c6e..7c20178 100644 --- a/entity/src/candidate.rs +++ b/entity/src/candidate.rs @@ -1,5 +1,4 @@ //! 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::*; @@ -18,6 +17,7 @@ pub struct Model { pub birthdate: Option, pub address: Option, pub telephone: Option, + #[sea_orm(default_value="Česká republika")] pub citizenship: Option, pub email: Option, pub sex: Option,