增加一些字段
This commit is contained in:
@@ -5,7 +5,7 @@ use serde::{Deserialize, Serialize};
|
||||
#[derive(DeriveEntityModel, Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||
#[sea_orm(table_name = "id_card")]
|
||||
pub struct Model {
|
||||
#[sea_orm(primary_key)]
|
||||
#[sea_orm(primary_key, unique)]
|
||||
pub id: String,
|
||||
pub name: String,
|
||||
pub gender: Gender,
|
||||
@@ -13,6 +13,7 @@ pub struct Model {
|
||||
pub address: Option<String>,
|
||||
pub nation: String,
|
||||
pub create_at: DateTime,
|
||||
pub update_at: DateTime,
|
||||
}
|
||||
pub type IDCardModel = Model;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user