aboutsummaryrefslogtreecommitdiff
path: root/tosin-macros
diff options
context:
space:
mode:
Diffstat (limited to 'tosin-macros')
-rw-r--r--tosin-macros/src/lib.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/tosin-macros/src/lib.rs b/tosin-macros/src/lib.rs
index 531a92b..86750e1 100644
--- a/tosin-macros/src/lib.rs
+++ b/tosin-macros/src/lib.rs
@@ -20,9 +20,11 @@ pub fn model_derive(input: TokenStream) -> TokenStream {
fn impl_model(ast: &syn::DeriveInput) -> TokenStream {
let name = &ast.ident;
let gen = quote! {
+ use tosin::db::models::ModelMeta;
impl #name {
- pub const META: tosin::db::models::ModelMeta = tosin::db::models::ModelMeta {
+ pub const META: ModelMeta = ModelMeta {
name: stringify!(#name),
+ fields: &[],
};
}
};