Refactor
This commit is contained in:
parent
3e45ac42a2
commit
9152d8cac9
@ -14,6 +14,7 @@ pub mod derive_attr {
|
|||||||
pub table_name: Option<syn::Lit>,
|
pub table_name: Option<syn::Lit>,
|
||||||
pub comment: Option<syn::Lit>,
|
pub comment: Option<syn::Lit>,
|
||||||
pub table_iden: Option<()>,
|
pub table_iden: Option<()>,
|
||||||
|
pub rename_all: Option<syn::Lit>,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,8 +4,7 @@ use sea_orm::Iterable;
|
|||||||
use sea_orm_macros::DeriveEntityModel;
|
use sea_orm_macros::DeriveEntityModel;
|
||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)]
|
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)]
|
||||||
#[sea_orm(table_name = "user")]
|
#[sea_orm(table_name = "user", rename_all = "camelCase")]
|
||||||
#[sea_orm(rename_all = "camelCase")]
|
|
||||||
pub struct Model {
|
pub struct Model {
|
||||||
#[sea_orm(primary_key)]
|
#[sea_orm(primary_key)]
|
||||||
id: i32,
|
id: i32,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user