-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
User.orm.xml
15 lines (15 loc) 路 1.23 KB
/
User.orm.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?xml version="1.0" encoding="UTF-8"?>
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
<mapped-superclass name="Nucleos\UserBundle\Model\User">
<field name="username" column="username" type="string" length="180" unique="true"/>
<field name="email" column="email" type="string" length="180" unique="true"/>
<field name="enabled" column="enabled" type="boolean"/>
<field name="password" column="password" type="string"/>
<field name="lastLogin" column="last_login" type="datetime" nullable="true"/>
<field name="confirmationToken" column="confirmation_token" type="string" length="180" unique="true" nullable="true"/>
<field name="passwordRequestedAt" column="password_requested_at" type="datetime" nullable="true"/>
<field name="locale" type="string" column="locale" length="8" nullable="true"/>
<field name="timezone" type="string" column="timezone" length="64" nullable="true"/>
<field name="roles" column="roles" type="json"/>
</mapped-superclass>
</doctrine-mapping>