address loop
title loop
This commit is contained in:
@@ -351,9 +351,9 @@
|
||||
</table>
|
||||
<table name="address" namespace="Thelia\Model">
|
||||
<column autoIncrement="true" name="id" primaryKey="true" required="true" type="INTEGER" />
|
||||
<column name="title" size="255" type="VARCHAR" />
|
||||
<column name="name" size="255" type="VARCHAR" />
|
||||
<column name="customer_id" required="true" type="INTEGER" />
|
||||
<column name="customer_title_id" type="INTEGER" />
|
||||
<column name="title_id" required="true" type="INTEGER" />
|
||||
<column name="company" size="255" type="VARCHAR" />
|
||||
<column name="firstname" required="true" size="255" type="VARCHAR" />
|
||||
<column name="lastname" required="true" size="255" type="VARCHAR" />
|
||||
@@ -370,13 +370,19 @@
|
||||
<reference foreign="id" local="customer_id" />
|
||||
</foreign-key>
|
||||
<foreign-key foreignTable="customer_title" name="fk_address_customer_title_id" onDelete="RESTRICT" onUpdate="RESTRICT">
|
||||
<reference foreign="id" local="customer_title_id" />
|
||||
<reference foreign="id" local="title_id" />
|
||||
</foreign-key>
|
||||
<foreign-key foreignTable="country" name="fk_address_country_id" onDelete="RESTRICT" onUpdate="RESTRICT">
|
||||
<reference foreign="id" local="country_id" />
|
||||
</foreign-key>
|
||||
<index name="idx_address_customer_id">
|
||||
<index-column name="customer_id" />
|
||||
</index>
|
||||
<index name="idx_address_customer_title_id">
|
||||
<index-column name="customer_title_id" />
|
||||
<index-column name="title_id" />
|
||||
</index>
|
||||
<index name="idx_address_country_id">
|
||||
<index-column name="country_id" />
|
||||
</index>
|
||||
<behavior name="timestampable" />
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user