<?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">
    <entity name="MyMoneyJar\Domain\ExternalCard" table="mmj_external_card">
        <id name="id" type="mmj_uuid">
            <generator strategy="NONE"/>
        </id>

        <field name="userId" type="mmj_uuid"/>
        <field name="name" length="255"/>
        <field name="number" length="255" nullable="true"/>
        <field name="expirationDate" length="10" nullable="true"/>
        <field name="createdAt" type="datetime_immutable"/>
        <field name="deletedAt" type="datetime_immutable" nullable="true"/>
    </entity>
</doctrine-mapping>
