[backend] from mariadb to postgres
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
<join-column nullable="false" on-delete="CASCADE" />
|
||||
</many-to-one>
|
||||
|
||||
<field name="ipAddress" nullable="true" length="15" />
|
||||
<field name="ipAddress" type="inet" nullable="true" length="15" />
|
||||
<embedded name="device" class="Basango\SharedKernel\Domain\Model\ValueObject\Tracking\Device" />
|
||||
<embedded name="location" class="Basango\SharedKernel\Domain\Model\ValueObject\Tracking\GeoLocation" />
|
||||
|
||||
|
||||
@@ -15,19 +15,19 @@
|
||||
<field name="name"/>
|
||||
<field name="email" type="email" />
|
||||
<field name="password" length="512" />
|
||||
<embedded name="roles" class="Basango\IdentityAndAccess\Domain\Model\ValueObject\Roles" use-column-prefix="false" />
|
||||
|
||||
<field name="isLocked" type="boolean">
|
||||
<options>
|
||||
<option name="default">0</option>
|
||||
<option name="default">false</option>
|
||||
</options>
|
||||
</field>
|
||||
<field name="isConfirmed" type="boolean">
|
||||
<options>
|
||||
<option name="default">0</option>
|
||||
<option name="default">false</option>
|
||||
</options>
|
||||
</field>
|
||||
|
||||
<embedded name="roles" class="Basango\IdentityAndAccess\Domain\Model\ValueObject\Roles" use-column-prefix="false" />
|
||||
|
||||
<field name="createdAt" type="datetime_immutable" />
|
||||
<field name="updatedAt" type="datetime_immutable" nullable="true" />
|
||||
</entity>
|
||||
|
||||
@@ -5,6 +5,6 @@
|
||||
https://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
|
||||
|
||||
<embeddable name="Basango\IdentityAndAccess\Domain\Model\ValueObject\Roles">
|
||||
<field name="roles" type="json"/>
|
||||
<field name="roles" type="jsonb"/>
|
||||
</embeddable>
|
||||
</doctrine-mapping>
|
||||
|
||||
Reference in New Issue
Block a user