[backend] from mariadb to postgres

This commit is contained in:
2025-10-20 13:50:56 +02:00
parent 49733e03b7
commit c334452426
69 changed files with 1082 additions and 1506 deletions
@@ -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>