Module Recettes : on avance encore...

This commit is contained in:
2021-04-28 20:37:58 +02:00
parent 9976d2ff76
commit 375e4e5d49
26 changed files with 657 additions and 99 deletions

View File

@@ -0,0 +1,41 @@
<database defaultIdMethod="native" name="thelia" namespace="Recettes\Model">
<table name="recipe">
<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="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" />
<foreign-key foreignTable="content" name="fk_content_content_id">
<reference foreign="id" local="content_id" />
</foreign-key>
</table>
<table name="recipe_steps">
<column name="recipe_id" required="true" type="INTEGER" />
<column name="step" required="true" type="INTEGER" />
<column name="description" required="true" type="VARCHAR" />
<foreign-key foreignTable="recipe" name="fk_recipesteps_recipe_id">
<reference foreign="id" local="recipe_id" />
</foreign-key>
</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" />
<foreign-key foreignTable="recipe" name="fk_recipeproducts_recipe_id">
<reference foreign="id" local="recipe_id" />
</foreign-key>
<foreign-key foreignTable="product_sale_elements" name="fk_recipeproducts_pse_id">
<reference foreign="id" local="pse_id" />
</foreign-key>
</table>
<external-schema filename="local/config/schema.xml" referenceOnly="true" />
</database>