Files

133 lines
7.2 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<database defaultIdMethod="native" name="thelia"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../../../core/vendor/thelia/propel/resources/xsd/database.xsd" >
<table name="selection" namespace="Selection\Model">
<column autoIncrement="true" name="id" primaryKey="true" required="true" type="INTEGER"/>
<column name="visible" required="true" type="TINYINT"/>
<column name="code" type="VARCHAR" size="255" />
<column name="title" type="VARCHAR" size="255" />
<column name="description" type="LONGVARCHAR" />
<column name="chapo" type="LONGVARCHAR" />
<column name="postscriptum" type="LONGVARCHAR" />
<column name="position" type="INTEGER" />
<!-- add seo column -->
<column name="meta_title" size="255" type="VARCHAR" />
<column name="meta_description" type="LONGVARCHAR" />
<column name="meta_keywords" type="LONGVARCHAR" />
<!-- end add seo column -->
<behavior name="timestampable" />
<behavior name="i18n">
<parameter name="i18n_columns" value="title, description, chapo, postscriptum, meta_title, meta_description, meta_keywords" />
</behavior>
</table>
<table name="selection_product" namespace="Selection\Model">
<column name="selection_id" primaryKey="true" required="true" type="INTEGER"/>
<column name="product_id" primaryKey="true" required="true" type="INTEGER"/>
<column name="position" required="true" type="INTEGER"/>
<foreign-key foreignTable="product" name="fk_selection_product_product_id" onDelete="CASCADE" onUpdate="RESTRICT">
<reference foreign="id" local="product_id"/>
</foreign-key>
<foreign-key foreignTable="selection" name="fk_selection_product_selection_id" onDelete="CASCADE" onUpdate="RESTRICT">
<reference foreign="id" local="selection_id"/>
</foreign-key>
<behavior name="timestampable" />
</table>
<table name="selection_content" namespace="Selection\Model">
<column name="selection_id" primaryKey="true" required="true" type="INTEGER"/>
<column name="content_id" primaryKey="true" required="true" type="INTEGER"/>
<column name="position" type="INTEGER"/>
<foreign-key foreignTable="content" name="fk_selection_content_content_id" onDelete="CASCADE" onUpdate="RESTRICT">
<reference foreign="id" local="content_id"/>
</foreign-key>
<foreign-key foreignTable="selection" name="fk_selection_content_selection_id" onDelete="CASCADE" onUpdate="RESTRICT">
<reference foreign="id" local="selection_id"/>
</foreign-key>
<behavior name="timestampable" />
</table>
<table name="selection_image" namespace="Selection\Model">
<column autoIncrement="true" name="id" primaryKey="true" required="true" type="INTEGER"/>
<column name="selection_id" required="true" type="INTEGER"/>
<column name="file" required="true" size="255" type="VARCHAR" />
<column defaultValue="1" name="visible" required="true" type="TINYINT" />
<column name="position" type="INTEGER" />
<column name="title" size="255" type="VARCHAR" />
<column name="description" type="CLOB" />
<column name="chapo" type="LONGVARCHAR" />
<column name="postscriptum" type="LONGVARCHAR" />
<foreign-key foreignTable="selection" name="fk_selection_image_selection_id" onDelete="CASCADE" onUpdate="RESTRICT">
<reference foreign="id" local="selection_id" />
</foreign-key>
<behavior name="timestampable" />
<behavior name="i18n">
<parameter name="i18n_columns" value="title, description, chapo, postscriptum" />
</behavior>
</table>
<table name="selection_container" namespace="Selection\Model" allowPkInsert="true">
<column autoIncrement="true" name="id" primaryKey="true" required="true" type="INTEGER"/>
<column name="visible" required="true" type="TINYINT"/>
<column name="code" type="VARCHAR" size="255" />
<column name="title" type="VARCHAR" size="255" />
<column name="description" type="LONGVARCHAR" />
<column name="chapo" type="LONGVARCHAR" />
<column name="postscriptum" type="LONGVARCHAR" />
<column name="position" type="INTEGER" />
<!-- add seo column -->
<column name="meta_title" size="255" type="VARCHAR" />
<column name="meta_description" type="LONGVARCHAR" />
<column name="meta_keywords" type="LONGVARCHAR" />
<!-- end add seo column -->
<behavior name="timestampable" />
<behavior name="i18n">
<parameter name="i18n_columns" value="title, description, chapo, postscriptum, meta_title, meta_description, meta_keywords" />
</behavior>
</table>
<table name="selection_container_associated_selection" namespace="Selection\Model" allowPkInsert="true">
<column autoIncrement="true" name="id" primaryKey="true" required="true" type="INTEGER"/>
<column name="selection_container_id" required="true" type="INTEGER"/>
<column name="selection_id" required="true" type="INTEGER"/>
<foreign-key foreignTable="selection_container" name="selection_container_associated_selection_container_id" onDelete="CASCADE" onUpdate="RESTRICT">
<reference foreign="id" local="selection_container_id" />
</foreign-key>
<foreign-key foreignTable="selection" name="selection_container_associated_selection_selection_id" onDelete="CASCADE" onUpdate="RESTRICT">
<reference foreign="id" local="selection_id" />
</foreign-key>
<index name="idx_selection_container_associated_selection_container_id">
<index-column name="selection_container_id" />
</index>
<index name="idx_selection_container_associated_selection_id">
<index-column name="selection_id" />
</index>
<behavior name="timestampable" />
</table>
<table name="selection_container_image" namespace="Selection\Model" allowPkInsert="true">
<column autoIncrement="true" name="id" primaryKey="true" required="true" type="INTEGER"/>
<column name="selection_container_id" required="true" type="INTEGER"/>
<column name="file" required="true" size="255" type="VARCHAR" />
<column defaultValue="1" name="visible" required="true" type="TINYINT" />
<column name="position" type="INTEGER" />
<column name="title" size="255" type="VARCHAR" />
<column name="description" type="CLOB" />
<column name="chapo" type="LONGVARCHAR" />
<column name="postscriptum" type="LONGVARCHAR" />
<foreign-key foreignTable="selection_container" name="fk_selection_container_image_selection_id" onDelete="CASCADE" onUpdate="RESTRICT">
<reference foreign="id" local="selection_container_id" />
</foreign-key>
<behavior name="timestampable" />
<behavior name="i18n">
<parameter name="i18n_columns" value="title, description, chapo, postscriptum" />
</behavior>
</table>
<external-schema filename="local/config/schema.xml" referenceOnly="true" />
</database>