29 lines
1.3 KiB
XML
29 lines
1.3 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<database defaultIdMethod="native" name="thelia" namespace="Comment\Model">
|
|
|
|
<table name="comment">
|
|
<column autoIncrement="true" name="id" primaryKey="true" required="true" type="INTEGER" />
|
|
<column name="username" size="255" type="VARCHAR" />
|
|
<column name="customer_id" type="INTEGER" />
|
|
<column name="ref" size="255" type="VARCHAR" />
|
|
<column name="ref_id" type="INTEGER" />
|
|
<column name="email" size="255" type="VARCHAR" />
|
|
<column name="title" size="255" type="VARCHAR" />
|
|
<column name="content" type="CLOB" />
|
|
<column name="rating" type="TINYINT" />
|
|
<column name="status" type="TINYINT" default="0" />
|
|
<column name="verified" type="TINYINT" />
|
|
<column name="abuse" type="INTEGER" />
|
|
<column name="locale" size="10" type="VARCHAR" />
|
|
<behavior name="timestampable" />
|
|
<foreign-key foreignTable="customer" name="fk_comment_customer_id" onDelete="CASCADE" onUpdate="RESTRICT">
|
|
<reference foreign="id" local="customer_id" />
|
|
</foreign-key>
|
|
<index name="idx_comment_user_id">
|
|
<index-column name="customer_id" />
|
|
</index>
|
|
</table>
|
|
|
|
<external-schema filename="local/config/schema.xml" referenceOnly="true" />
|
|
</database>
|