Add type mapping
This commit is contained in:
parent
5567fbc289
commit
c0a77c1298
@ -163,9 +163,9 @@ pub fn expand_derive_entity_model(data: Data, attrs: Vec<Attribute>) -> syn::Res
|
||||
"bool" => quote! { Boolean },
|
||||
"NaiveDate" => quote! { Date },
|
||||
"NaiveTime" => quote! { Time },
|
||||
"NaiveDateTime" => quote! { DateTime },
|
||||
"DateTime" | "NaiveDateTime" => quote! { DateTime },
|
||||
"Uuid" => quote! { Uuid },
|
||||
"Decimal" => quote! { BigInteger },
|
||||
"Decimal" => quote! { Decimal },
|
||||
_ => {
|
||||
return Err(Error::new(
|
||||
field.span(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user