Module Recettes : on avance... un peu...

This commit is contained in:
2021-04-29 19:05:43 +02:00
parent 8ccce53560
commit 30a5848cf9
12 changed files with 105 additions and 36 deletions

View File

@@ -4,10 +4,12 @@
<column name="id" autoIncrement="true" primaryKey="true" required="true" type="INTEGER" />
<column name="content_id" type="INTEGER" />
<column name="title" required="true" type="VARCHAR" />
<column name="summary" required="false" type="VARCHAR" />
<column name="people" required="true" type="INTEGER" />
<column name="difficulty" required="true" type="INTEGER" />
<column name="preparation_time" required="true" type="VARCHAR" />
<column name="cooking_time" required="false" type="VARCHAR" />
<column name="other_ingredients" required="false" type="VARCHAR" />
<foreign-key foreignTable="content" name="fk_content_content_id">
<reference foreign="id" local="content_id" />
@@ -15,8 +17,8 @@
</table>
<table name="recipe_steps">
<column name="recipe_id" required="true" type="INTEGER" />
<column name="step" required="true" type="INTEGER" />
<column name="recipe_id" required="true" primaryKey="true" type="INTEGER" />
<column name="step" required="true" primaryKey="true" type="INTEGER" />
<column name="description" required="true" type="VARCHAR" />
<foreign-key foreignTable="recipe" name="fk_recipesteps_recipe_id">
@@ -25,9 +27,10 @@
</table>
<table name="recipe_products">
<column name="recipe_id" required="true" type="INTEGER" />
<column name="pse_id" required="true" type="INTEGER" />
<column name="quantity" required="true" type="INTEGER" />
<column name="recipe_id" required="true" primaryKey="true" type="INTEGER" />
<column name="pse_id" required="true" primaryKey="true" type="INTEGER" />
<column name="nb_of_products" required="true" type="INTEGER" />
<column name="quantity" required="true" type="VARCHAR" />
<foreign-key foreignTable="recipe" name="fk_recipeproducts_recipe_id">
<reference foreign="id" local="recipe_id" />