schema.xml 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <database name="default" namespace="FOS\UserBundle\Propel" defaultIdMethod="native">
  3. <table name="fos_user" phpName="User">
  4. <column name="id" type="integer" required="true" primaryKey="true" autoIncrement="true" />
  5. <column name="username" type="varchar" size="255" primaryString="true" />
  6. <column name="username_canonical" type="varchar" size="255" />
  7. <unique>
  8. <unique-column name="username_canonical" />
  9. </unique>
  10. <column name="email" type="varchar" size="255" />
  11. <column name="email_canonical" type="varchar" size="255" />
  12. <unique>
  13. <unique-column name="email_canonical" />
  14. </unique>
  15. <column name="enabled" type="boolean" defaultValue="false" />
  16. <column name="salt" type="varchar" size="255" required="true" />
  17. <column name="password" type="varchar" size="255" required="true" />
  18. <column name="last_login" type="timestamp" required="false" />
  19. <column name="locked" type="boolean" defaultValue="false" />
  20. <column name="expired" type="boolean" defaultValue="false" />
  21. <column name="expires_at" type="timestamp" required="false" />
  22. <column name="confirmation_token" type="varchar" size="255" required="false" />
  23. <column name="password_requested_at" type="timestamp" required="false" />
  24. <column name="credentials_expired" type="boolean" defaultValue="false" />
  25. <column name="credentials_expire_at" type="timestamp" required="false" />
  26. <column name="roles" type="array" />
  27. <behavior name="typehintable">
  28. <parameter name="last_login" value="DateTime" />
  29. <parameter name="password_requested_at" value="DateTime" />
  30. <parameter name="roles" value="array" />
  31. <parameter name="fos_group" value="FOS\UserBundle\Model\GroupInterface" />
  32. <parameter name="nullable_columns" value="password_requested_at" />
  33. </behavior>
  34. </table>
  35. <table name="fos_group" phpName="Group">
  36. <column name="id" type="integer" required="true" primaryKey="true" autoIncrement="true" />
  37. <column name="name" type="varchar" size="255" required="true" primaryString="true" />
  38. <column name="roles" type="array" />
  39. <behavior name="typehintable">
  40. <parameter name="roles" value="array" />
  41. </behavior>
  42. </table>
  43. <table name="fos_user_group" phpName="UserGroup" isCrossRef="true">
  44. <column name="fos_user_id" type="integer" required="true" primaryKey="true" />
  45. <column name="fos_group_id" type="integer" required="true" primaryKey="true" />
  46. <foreign-key foreignTable="fos_user">
  47. <reference local="fos_user_id" foreign="id" />
  48. </foreign-key>
  49. <foreign-key foreignTable="fos_group">
  50. <reference local="fos_group_id" foreign="id" />
  51. </foreign-key>
  52. </table>
  53. </database>