Added coupon_country and coupon_module tables
This commit is contained in:
@@ -1,9 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<vendor type="mysql">
|
||||
<parameter name="Engine" value="InnoDB"/>
|
||||
<parameter name="Charset" value="utf8"/>
|
||||
</vendor>
|
||||
<database defaultIdMethod="native" name="thelia">
|
||||
<table name="category" namespace="Thelia\Model">
|
||||
<column autoIncrement="true" name="id" primaryKey="true" required="true" type="INTEGER" />
|
||||
@@ -37,7 +33,7 @@
|
||||
<column autoIncrement="true" name="id" primaryKey="true" required="true" type="INTEGER" />
|
||||
<column name="tax_rule_id" type="INTEGER" />
|
||||
<column name="ref" required="true" size="255" type="VARCHAR" />
|
||||
<column name="position" required="true" defaultValue="0" type="INTEGER" />
|
||||
<column defaultValue="0" name="visible" required="true" type="TINYINT" />
|
||||
<column defaultValue="0" name="position" required="true" type="INTEGER" />
|
||||
<column name="title" size="255" type="VARCHAR" />
|
||||
<column name="description" type="CLOB" />
|
||||
@@ -110,7 +106,7 @@
|
||||
<index name="idx_country_area_id">
|
||||
<index-column name="area_id" />
|
||||
</index>
|
||||
<index-column name="by_default" />
|
||||
<index name="idx_country_by_default">
|
||||
<index-column name="by_default" />
|
||||
</index>
|
||||
<behavior name="timestampable" />
|
||||
@@ -162,9 +158,9 @@
|
||||
<index name="idx_tax_rule_country_country_id">
|
||||
<index-column name="country_id" />
|
||||
</index>
|
||||
<index-column name="tax_rule_id"/>
|
||||
<index-column name="country_id"/>
|
||||
<index-column name="position"/>
|
||||
<index name="idx_tax_rule_country_tax_rule_id_country_id_position">
|
||||
<index-column name="tax_rule_id" />
|
||||
<index-column name="country_id" />
|
||||
<index-column name="position" />
|
||||
</index>
|
||||
<behavior name="timestampable" />
|
||||
@@ -226,9 +222,9 @@
|
||||
<index name="idx_feature_prod_feature_av_id">
|
||||
<index-column name="feature_av_id" />
|
||||
</index>
|
||||
<index-column name="product_id"/>
|
||||
<index-column name="feature_id"/>
|
||||
<index-column name="position"/>
|
||||
<index name="idx_feature_product_product_id_feature_id_position">
|
||||
<index-column name="product_id" />
|
||||
<index-column name="feature_id" />
|
||||
<index-column name="position" />
|
||||
</index>
|
||||
<behavior name="timestampable" />
|
||||
@@ -250,8 +246,8 @@
|
||||
<index name="fk_feature_template_idx">
|
||||
<index-column name="template_id" />
|
||||
</index>
|
||||
<index-column name="template_id"/>
|
||||
<index-column name="position"/>
|
||||
<index name="idx_feature_template_template_id_position">
|
||||
<index-column name="template_id" />
|
||||
<index-column name="position" />
|
||||
</index>
|
||||
<behavior name="timestampable" />
|
||||
@@ -326,14 +322,14 @@
|
||||
</foreign-key>
|
||||
<index name="idx_product_sale_element_product_id">
|
||||
<index-column name="product_id" />
|
||||
<index name="idx_product_elements_product_id_promo_is_default">
|
||||
<index-column name="product_id"/>
|
||||
<index-column name="promo"/>
|
||||
<index-column name="is_default"/>
|
||||
</index>
|
||||
</index>
|
||||
<index name="ref">
|
||||
<index-column name="ref" />
|
||||
</index>
|
||||
<index name="idx_product_elements_product_id_promo_is_default">
|
||||
<index-column name="product_id" />
|
||||
<index-column name="promo" />
|
||||
<index-column name="is_default" />
|
||||
</index>
|
||||
<behavior name="timestampable" />
|
||||
</table>
|
||||
@@ -391,12 +387,12 @@
|
||||
<column name="remember_me_serial" size="255" type="VARCHAR" />
|
||||
<foreign-key foreignTable="customer_title" name="fk_customer_customer_title_id" onDelete="RESTRICT" onUpdate="RESTRICT">
|
||||
<reference foreign="id" local="title_id" />
|
||||
<unique name="ref_UNIQUE">
|
||||
<unique-column name="ref" />
|
||||
</unique>
|
||||
</foreign-key>
|
||||
<index name="idx_customer_customer_title_id">
|
||||
<index-column name="title_id" />
|
||||
</index>
|
||||
<unique name="ref_UNIQUE">
|
||||
<unique-column name="ref" />
|
||||
</unique>
|
||||
<behavior name="timestampable" />
|
||||
</table>
|
||||
@@ -462,7 +458,7 @@
|
||||
<column name="decimals" size="45" type="VARCHAR" />
|
||||
<column name="by_default" type="TINYINT" />
|
||||
<column name="position" type="INTEGER" />
|
||||
<index-column name="by_default"/>
|
||||
<index name="idx_lang_by_default">
|
||||
<index-column name="by_default" />
|
||||
</index>
|
||||
<behavior name="timestampable" />
|
||||
@@ -523,8 +519,8 @@
|
||||
<index name="idx_product_image_product_id">
|
||||
<index-column name="product_id" />
|
||||
</index>
|
||||
<index-column name="product_id"/>
|
||||
<index-column name="position"/>
|
||||
<index name="idx_product_image_product_id_position">
|
||||
<index-column name="product_id" />
|
||||
<index-column name="position" />
|
||||
</index>
|
||||
<behavior name="timestampable" />
|
||||
@@ -631,10 +627,10 @@
|
||||
<column name="rate" type="FLOAT" />
|
||||
<column name="position" type="INTEGER" />
|
||||
<column name="by_default" type="TINYINT" />
|
||||
<index-column name="by_default"/>
|
||||
<index name="idx_currency_by_default">
|
||||
<index-column name="by_default" />
|
||||
</index>
|
||||
<index-column name="code"/>
|
||||
<index name="idx_currency_code">
|
||||
<index-column name="code" />
|
||||
</index>
|
||||
<behavior name="timestampable" />
|
||||
@@ -728,12 +724,12 @@
|
||||
<column name="description" type="CLOB" />
|
||||
<column name="chapo" type="LONGVARCHAR" />
|
||||
<column name="postscriptum" type="LONGVARCHAR" />
|
||||
<index name="idx_module_activate">
|
||||
<index-column name="activate" />
|
||||
</index>
|
||||
<column name="full_namespace" size="255" type="VARCHAR" />
|
||||
<unique name="code_UNIQUE">
|
||||
<unique-column name="code" />
|
||||
</unique>
|
||||
<index name="idx_module_activate">
|
||||
<index-column name="activate" />
|
||||
</index>
|
||||
<behavior name="timestampable" />
|
||||
<behavior name="i18n">
|
||||
@@ -1083,8 +1079,8 @@
|
||||
<index name="idx_category_image_category_id">
|
||||
<index-column name="category_id" />
|
||||
</index>
|
||||
<index-column name="category_id"/>
|
||||
<index-column name="position"/>
|
||||
<index name="idx_category_image_category_id_position">
|
||||
<index-column name="category_id" />
|
||||
<index-column name="position" />
|
||||
</index>
|
||||
<behavior name="timestampable" />
|
||||
@@ -1107,8 +1103,8 @@
|
||||
<index name="idx_folder_image_folder_id">
|
||||
<index-column name="folder_id" />
|
||||
</index>
|
||||
<index-column name="folder_id"/>
|
||||
<index-column name="position"/>
|
||||
<index name="idx_folder_image_folder_id_position">
|
||||
<index-column name="folder_id" />
|
||||
<index-column name="position" />
|
||||
</index>
|
||||
<behavior name="timestampable" />
|
||||
@@ -1131,8 +1127,8 @@
|
||||
<index name="idx_content_image_content_id">
|
||||
<index-column name="content_id" />
|
||||
</index>
|
||||
<index-column name="content_id"/>
|
||||
<index-column name="position"/>
|
||||
<index name="idx_content_image_content_id_position">
|
||||
<index-column name="content_id" />
|
||||
<index-column name="position" />
|
||||
</index>
|
||||
<behavior name="timestampable" />
|
||||
@@ -1253,16 +1249,6 @@
|
||||
</unique>
|
||||
<index name="idx_rewriting_url_redirected">
|
||||
<index-column name="redirected" />
|
||||
<index name="idx_rewriting_url_view_updated_at">
|
||||
<index-column name="view"/>
|
||||
<index-column name="updated_at"/>
|
||||
</index>
|
||||
<index name="idx_rewriting_url_view_id_view_view_locale_updated_at">
|
||||
<index-column name="view_id"/>
|
||||
<index-column name="view"/>
|
||||
<index-column name="view_locale"/>
|
||||
<index-column name="updated_at"/>
|
||||
</index>
|
||||
</index>
|
||||
<behavior name="timestampable" />
|
||||
</table>
|
||||
@@ -1301,8 +1287,8 @@
|
||||
<index name="idx_module_image_module_id">
|
||||
<index-column name="module_id" />
|
||||
</index>
|
||||
<index-column name="module_id"/>
|
||||
<index-column name="position"/>
|
||||
<index name="idx_module_image_module_id_position">
|
||||
<index-column name="module_id" />
|
||||
<index-column name="position" />
|
||||
</index>
|
||||
<behavior name="timestampable" />
|
||||
@@ -1357,4 +1343,30 @@
|
||||
<index-column name="order_id" />
|
||||
</index>
|
||||
<behavior name="timestampable" />
|
||||
</table>
|
||||
<table isCrossRef="true" name="coupon_country" namespace="Thelia\Model">
|
||||
<column name="coupon_id" primaryKey="true" required="true" type="INTEGER" />
|
||||
<column name="country_id" primaryKey="true" required="true" type="INTEGER" />
|
||||
<foreign-key foreignTable="country" name="fk_coupon_country_country_id" onDelete="CASCADE">
|
||||
<reference foreign="id" local="country_id" />
|
||||
</foreign-key>
|
||||
<foreign-key foreignTable="coupon" name="fk_coupon_country_coupon_id" onDelete="CASCADE">
|
||||
<reference foreign="id" local="coupon_id" />
|
||||
</foreign-key>
|
||||
<index name="fk_country_id_idx">
|
||||
<index-column name="country_id" />
|
||||
</index>
|
||||
</table>
|
||||
<table isCrossRef="true" name="coupon_module" namespace="Thelia\Model">
|
||||
<column name="coupon_id" primaryKey="true" required="true" type="INTEGER" />
|
||||
<column name="module_id" primaryKey="true" required="true" type="INTEGER" />
|
||||
<foreign-key foreignTable="coupon" name="fk_coupon_module_coupon_id" onDelete="CASCADE">
|
||||
<reference foreign="id" local="coupon_id" />
|
||||
</foreign-key>
|
||||
<foreign-key foreignTable="module" name="fk_coupon_module_module_id" onDelete="CASCADE">
|
||||
<reference foreign="id" local="module_id" />
|
||||
</foreign-key>
|
||||
<index name="fk_module_id_idx">
|
||||
<index-column name="module_id" />
|
||||
</index>
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user