Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 28dfbde43a
Fetching contributors…

Cannot retrieve contributors at this time

245 lines (222 sloc) 10.259 kB
<?xml version="1.0" encoding="UTF-8"?>
<database name="propel" defaultIdMethod="native" package="lib.model">
<table name="article">
<column name="id" type="integer" required="true" primaryKey="true" autoincrement="true" />
<column name="title" type="varchar" size="255" required="true" />
<column name="body" type="longvarchar" />
<column name="Online" type="boolean" />
<column name="excerpt" type="varchar" />
<column name="category_id" type="integer" required="true" />
<foreign-key foreignTable="category">
<reference local="category_id" foreign="id" />
</foreign-key>
<column name="created_at" type="timestamp" />
<column name="end_date" type="timestamp" />
<column name="book_id" type="integer" />
<foreign-key foreignTable="book">
<reference local="book_id" foreign="id" onDelete="setnull" />
</foreign-key>
<unique name="unique_title_category">
<unique-column name="title" />
<unique-column name="category_id" />
</unique>
</table>
<table name="category">
<column name="id" type="integer" required="true" primaryKey="true" autoincrement="true" />
<column name="name" type="varchar" size="255" />
<unique name="unique_name">
<unique-column name="name" />
</unique>
<unique name="unique_name1">
<unique-column name="name" />
</unique>
</table>
<table name="book">
<column name="id" type="integer" required="true" primaryKey="true" autoincrement="true" />
<column name="name" type="varchar" size="255" />
</table>
<table name="author">
<column name="id" type="integer" required="true" primaryKey="true" autoincrement="true" />
<column name="name" type="varchar" size="255" />
<column name="hobbies" type="array" required="false" />
</table>
<table name="author_article">
<behavior name="symfony">
<parameter name="form" value="false"/>
<parameter name="filter" value="false"/>
</behavior>
<column name="author_id" type="integer" primaryKey="true" />
<foreign-key foreignTable="author">
<reference local="author_id" foreign="id" />
</foreign-key>
<column name="article_id" type="integer" primaryKey="true" />
<foreign-key foreignTable="article">
<reference local="article_id" foreign="id" />
</foreign-key>
</table>
<table name="product" phpName="Product" isI18N="true" i18nTable="product_i18n">
<column autoIncrement="false" name="id" type="integer" required="true" primaryKey="true" autoincrement="true"/>
<column primaryKey="false" required="false" autoIncrement="false" name="price" type="float"/>
<column name="a_primary_string" type="varchar" size="64" primaryString="true"/>
</table>
<table name="product_i18n" phpName="ProductI18n">
<column autoIncrement="false" name="id" type="integer" required="true" primaryKey="true"/>
<column autoIncrement="false" name="culture" isCulture="true" type="varchar" size="7" required="true" primaryKey="true"/>
<column primaryKey="false" required="false" autoIncrement="false" name="name" type="varchar" size="50" primaryString="true"/>
<foreign-key onDelete="none" onUpdate="none" foreignTable="product" refPhpName="Translation">
<reference local="id" foreign="id"/>
</foreign-key>
</table>
<!-- model and data for testing SfPropelBehaviorI18n (part of sfPropelORMPlugin - symfony_i18n - historical integration ) -->
<table name="movie" isI18N="true" i18nTable="movie_i18n">
<column name="id" type="integer" required="true" primaryKey="true" autoincrement="true" />
<column name="director" type="varchar" size="255" />
</table>
<table name="movie_i18n">
<column name="id" type="integer" required="true" primaryKey="true" />
<foreign-key foreignTable="movie" onDelete="cascade">
<reference local="id" foreign="id"/>
</foreign-key>
<column name="culture" type="varchar" size="7" required="true" primaryKey="true" isCulture="true" />
<column name="title" type="varchar" primaryString="true" />
<unique>
<unique-column name="title" />
</unique>
</table>
<!-- model and data for testing SfPropelBehaviorI18n (part of sfPropelORMPlugin - symfony_i18n - historical integration ) -->
<table name="toy" isI18N="true" i18nTable="toy_i18n">
<column name="id" type="integer" required="true" primaryKey="true" autoincrement="true" />
<column name="ref" type="varchar" size="255" />
<column name="movie_id" type="integer" />
<foreign-key foreignTable="movie">
<reference local="movie_id" foreign="id" />
</foreign-key>
</table>
<table name="toy_i18n">
<column name="id" type="integer" required="true" primaryKey="true" />
<foreign-key foreignTable="toy" onDelete="cascade">
<reference local="id" foreign="id"/>
</foreign-key>
<column name="culture" type="varchar" size="7" required="true" primaryKey="true" isCulture="true" />
<column name="name" type="varchar" size="255" />
</table>
<!-- model and data for testing Symfony integration with BehaviorI18n (part of Propel) -->
<table name="movie_propel">
<column name="id" type="integer" required="true" primaryKey="true" autoincrement="true" />
<column name="director" type="varchar" size="255" />
<column name="title" type="varchar" primaryString="true" />
<behavior name="i18n">
<parameter name="i18n_columns" value="title" />
<parameter name="locale_alias" value="culture" />
</behavior>
</table>
<!-- model and data for testing Symfony integration with BehaviorI18n (part of Propel) -->
<table name="toy_propel">
<column name="id" type="integer" required="true" primaryKey="true" autoincrement="true" />
<column name="ref" type="varchar" size="255" />
<column name="name" type="varchar" size="255" />
<behavior name="i18n">
<parameter name="i18n_columns" value="name" />
<parameter name="locale_alias" value="culture" />
</behavior>
<column name="movie_propel_id" type="integer" />
<foreign-key foreignTable="movie_propel">
<reference local="movie_propel_id" foreign="id" />
</foreign-key>
</table>
<table name="attachment">
<column name="id" type="integer" required="true" primaryKey="true" autoincrement="true" />
<column name="article_id" type="integer" />
<column name="name" type="varchar" size="255" />
<column name="file" type="varchar" size="255" />
<foreign-key foreignTable="article">
<reference local="article_id" foreign="id" onDelete="setnull" />
</foreign-key>
</table>
<table name="enum_sample">
<column name="id" type="integer" required="true" primaryKey="true" autoincrement="true" />
<column name="enum_values" type="enum" valueSet="one, two, three space" />
</table>
<!-- model and data for testing many to many without isCrossRef -->
<table name="seller">
<column name="id" type="integer" required="true" primaryKey="true" autoincrement="true" />
<column name="name" type="varchar" size="255" />
</table>
<table name="sale">
<column name="seller_id" type="integer" primaryKey="true" />
<column name="book_id" type="integer" primaryKey="true" />
<column name="number" type="integer" />
<foreign-key foreignTable="seller">
<reference local="seller_id" foreign="id" />
</foreign-key>
<foreign-key foreignTable="book">
<reference local="book_id" foreign="id" />
</foreign-key>
</table>
<table name="extra_seller" isCrossRef="true">
<column name="seller_id" type="integer" primaryKey="true" />
<column name="extra_id" type="integer" primaryKey="true" />
<column name="comment" type="varchar" size="255" required="false" />
<foreign-key foreignTable="seller">
<reference local="seller_id" foreign="id" />
</foreign-key>
<foreign-key foreignTable="extra">
<reference local="extra_id" foreign="id" />
</foreign-key>
</table>
<table name="extra_seller_without_crossref">
<column name="seller_id" type="integer" primaryKey="true" />
<column name="extra_id" type="integer" primaryKey="true" />
<foreign-key foreignTable="seller">
<reference local="seller_id" foreign="id" />
</foreign-key>
<foreign-key foreignTable="extra">
<reference local="extra_id" foreign="id" />
</foreign-key>
</table>
<table name="extra_seller_without_crossref2">
<column name="seller_id" type="integer" primaryKey="true" />
<column name="extra_id" type="integer" primaryKey="true" />
<foreign-key foreignTable="seller">
<reference local="seller_id" foreign="id" />
</foreign-key>
<foreign-key foreignTable="extra">
<reference local="extra_id" foreign="id" />
</foreign-key>
</table>
<table name="book_seller_without_crossref">
<column name="seller_id" type="integer" primaryKey="true" />
<column name="book_id" type="integer" primaryKey="true" />
<foreign-key foreignTable="seller">
<reference local="seller_id" foreign="id" />
</foreign-key>
<foreign-key foreignTable="book">
<reference local="book_id" foreign="id" />
</foreign-key>
</table>
<table name="seller_seller" isCrossRef="true">
<column name="seller_id" type="integer" primaryKey="true" />
<column name="seller_cross_id" type="integer" primaryKey="true" />
<foreign-key foreignTable="seller">
<reference local="seller_id" foreign="id" />
</foreign-key>
<foreign-key foreignTable="seller">
<reference local="seller_cross_id" foreign="id" />
</foreign-key>
</table>
<table name="seller_seller2">
<column name="seller_id" type="integer" primaryKey="true" />
<column name="seller_cross_id" type="integer" primaryKey="true" />
<foreign-key foreignTable="seller">
<reference local="seller_id" foreign="id" />
</foreign-key>
<foreign-key foreignTable="seller">
<reference local="seller_cross_id" foreign="id" />
</foreign-key>
</table>
<table name="extra">
<column name="id" type="integer" required="true" primaryKey="true" autoincrement="true" />
<column name="name" type="varchar" size="255" />
<column name="useless" type="varchar" size="255" />
</table>
</database>
Jump to Line
Something went wrong with that request. Please try again.