added to many fields to entities author, book, recipe and ingredient

This commit is contained in:
2024-03-29 11:41:14 +01:00
parent 05c0c0393d
commit 6f3e589e10
3 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ struct book
namespace field = matador::utils::access;
field::primary_key(op, "id", id);
field::attribute(op, "title", title, 511);
field::has_one(op, "author_id", book_author, utils::fetch_type::EAGER);
field::belongs_to(op, "author_id", book_author, utils::fetch_type::EAGER);
field::attribute(op, "published_in", published_in);
}
};