From ba276cdde56dc1ee87a7b56aafe35bdf7220a124 Mon Sep 17 00:00:00 2001 From: Billy Chan Date: Fri, 10 Sep 2021 17:11:19 +0800 Subject: [PATCH] `DeriveEntityModel` supports attribute type of `Vec` --- sea-orm-macros/src/derives/entity_model.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/sea-orm-macros/src/derives/entity_model.rs b/sea-orm-macros/src/derives/entity_model.rs index fbaaef15..004970c5 100644 --- a/sea-orm-macros/src/derives/entity_model.rs +++ b/sea-orm-macros/src/derives/entity_model.rs @@ -167,6 +167,7 @@ pub fn expand_derive_entity_model(data: Data, attrs: Vec) -> syn::Res "Uuid" => quote! { Uuid }, "Json" => quote! { Json }, "Decimal" => quote! { Decimal }, + "Vec" => quote! { Binary }, _ => { return Err(Error::new( field.span(),