This commit is contained in:
Chris Tsang 2024-05-28 20:30:13 +01:00
parent 3e45ac42a2
commit 9152d8cac9
2 changed files with 2 additions and 2 deletions

View File

@ -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>,
} }
} }

View File

@ -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,