Fix DeriveEntityModel Decimal mapping

This commit is contained in:
Chris Tsang 2021-09-18 21:45:28 +08:00
parent 84594114dc
commit 27807f3f6c

View File

@ -180,7 +180,7 @@ pub fn expand_derive_entity_model(data: Data, attrs: Vec<Attribute>) -> syn::Res
} }
"Uuid" => quote! { Uuid }, "Uuid" => quote! { Uuid },
"Json" => quote! { Json }, "Json" => quote! { Json },
"Decimal" => quote! { Decimal }, "Decimal" => quote! { Decimal(None) },
"Vec<u8>" => quote! { Binary }, "Vec<u8>" => quote! { Binary },
_ => { _ => {
return Err(Error::new( return Err(Error::new(