order tax tables

This commit is contained in:
Etienne Roudeix
2013-09-20 08:23:02 +02:00
parent 6a990bf625
commit 17548e3526
13 changed files with 712 additions and 3491 deletions

View File

@@ -101,7 +101,7 @@
<column name="type" required="true" size="255" type="VARCHAR" />
<column name="serialized_requirements" required="true" type="LONGVARCHAR" />
<column name="title" size="255" type="VARCHAR" />
<column name="description" type="LONGVARCHAR" />
<column name="description" type="CLOB" />
<behavior name="timestampable" />
<behavior name="i18n">
<parameter name="i18n_columns" value="title, description" />
@@ -110,7 +110,7 @@
<table name="tax_rule" namespace="Thelia\Model">
<column autoIncrement="true" name="id" primaryKey="true" required="true" type="INTEGER" />
<column name="title" size="255" type="VARCHAR" />
<column name="description" type="LONGVARCHAR" />
<column name="description" type="CLOB" />
<column defaultValue="0" name="is_default" required="true" type="BOOLEAN" />
<behavior name="timestampable" />
<behavior name="i18n">
@@ -607,7 +607,8 @@
<column name="was_new" required="true" type="TINYINT" />
<column name="was_in_promo" required="true" type="TINYINT" />
<column name="weight" size="45" type="VARCHAR" />
<column name="tax" type="FLOAT" />
<column name="tax_rule_title" size="255" type="VARCHAR" />
<column name="tax_rule_description" type="CLOB" />
<column description="not managed yet" name="parent" type="INTEGER" />
<foreign-key foreignTable="order" name="fk_order_product_order_id" onDelete="CASCADE" onUpdate="RESTRICT">
<reference foreign="id" local="order_id" />
@@ -632,7 +633,7 @@
<parameter name="i18n_columns" value="title, description, chapo, postscriptum" />
</behavior>
</table>
<table name="order_attribute_combination" namespace="Thelia\Model">
<table name="order_product_attribute_combination" namespace="Thelia\Model">
<column autoIncrement="true" name="id" primaryKey="true" required="true" type="INTEGER" />
<column name="order_product_id" required="true" type="INTEGER" />
<column name="attribute_title" required="true" size="255" type="VARCHAR" />
@@ -643,10 +644,10 @@
<column name="attribute_av_chapo" type="LONGVARCHAR" />
<column name="attribute_av_description" type="CLOB" />
<column name="attribute_av_postscriptum" type="LONGVARCHAR" />
<foreign-key foreignTable="order_product" name="fk_order_feature_order_product_id" onDelete="CASCADE" onUpdate="RESTRICT">
<foreign-key foreignTable="order_product" name="fk_order_product_attribute_combination_order_product_id" onDelete="CASCADE" onUpdate="RESTRICT">
<reference foreign="id" local="order_product_id" />
</foreign-key>
<index name="idx_order_feature_order_product_id">
<index name="idx_order_product_attribute_combination_order_product_id">
<index-column name="order_product_id" />
</index>
<behavior name="timestampable" />
@@ -1236,4 +1237,18 @@
<parameter name="i18n_columns" value="title, description, chapo, postscriptum" />
</behavior>
</table>
<table name="order_product_tax" namespace="Thelia\Model">
<column autoIncrement="true" name="id" primaryKey="true" required="true" type="INTEGER" />
<column name="order_product_id" required="true" type="INTEGER" />
<column name="title" required="true" size="255" type="VARCHAR" />
<column name="description" type="CLOB" />
<column name="amount" required="true" type="FLOAT" />
<foreign-key foreignTable="order_product" name="fk_ order_product_tax_order_product_id0" onDelete="CASCADE" onUpdate="RESTRICT">
<reference foreign="id" local="order_product_id" />
</foreign-key>
<index name="idx_ order_product_tax_order_product_id">
<index-column name="order_product_id" />
</index>
<behavior name="timestampable" />
</table>
</database>