use table metas where possible
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
#ifndef MATADOR_MODEL_METAS_HPP
|
||||
#define MATADOR_MODEL_METAS_HPP
|
||||
|
||||
#include "matador/query/meta_table_macro.hpp"
|
||||
|
||||
META_TABLE(recipes, RECIPE, id, name);
|
||||
META_TABLE(ingredients, INGREDIENT, id, name);
|
||||
META_TABLE(recipe_ingredients, RECIPE_INGREDIENT, recipe_id, ingredient_id);
|
||||
META_TABLE(airplanes, AIRPLANE, id, brand, model);
|
||||
META_TABLE(flights, FLIGHT, id, airplane_id, pilot_name);
|
||||
META_TABLE(shipments, SHIPMENT, id, tracking_number)
|
||||
META_TABLE(packages, PACKAGE, id, weight, shipment_id)
|
||||
META_TABLE(persons, PERSON, id, name, age, image)
|
||||
|
||||
#endif //MATADOR_MODEL_METAS_HPP
|
||||
Reference in New Issue
Block a user