<?xml version="1.0" encoding="UTF-8"?>
<database defaultIdMethod="native" name="TheliaMain"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:noNamespaceSchemaLocation="../../../../vendor/thelia/propel/resources/xsd/database.xsd" >
    <!--
    See propel documentation on http://propelorm.org for all information about schema file

    <table name="product_rel" namespace="ResetPassword\Model">
        <column autoIncrement="true" name="id" primaryKey="true" required="true" type="INTEGER" />
        <column defaultValue="0" name="visible" required="true" type="TINYINT" />
        <column defaultValue="0" name="position" required="true" 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="product" name="fk_product_id" onDelete="CASCADE" onUpdate="RESTRICT">
            <reference foreign="id" local="product_id" />
        </foreign-key>
        <behavior name="timestampable" />
        <behavior name="i18n">
            <parameter name="i18n_columns" value="title, description, chapo, postscriptum" />
        </behavior>
    </table>
    -->

    <table name="password_reset_token" namespace="ResetPassword\Model">
      <column name="id" primaryKey="true" required="true" type="INTEGER" autoIncrement="true" />
      <column name="customer_id" required="true" type="INTEGER" />
      <column name="token" size="255" type="VARCHAR" />
      <column name="end_of_life" type="TIMESTAMP"/>
      <foreign-key foreignTable="customer" name="fk_password_reset_token_customer_id" onDelete="CASCADE" onUpdate="RESTRICT">
        <reference foreign="id" local="customer_id" />
      </foreign-key>
      <behavior name="timestampable" />
    </table>

    <table name="customer_forbidden_password" namespace="ResetPassword\Model">
      <column name="id" primaryKey="true" required="true" type="INTEGER" autoIncrement="true" />
      <column name="customer_id" required="true" type="INTEGER" />
      <column name="password" required="true" size="255" type="VARCHAR" />

      <foreign-key foreignTable="customer" name="fk_customer_forbidden_password_customer_id" onDelete="CASCADE" onUpdate="RESTRICT">
        <reference foreign="id" local="customer_id" />
      </foreign-key>
    </table>

  <external-schema filename="local/config/schema.xml" referenceOnly="true"/>
</database>
