<?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\ExternalCardTransaction" table="mmj_external_card_transaction">
        <id name="id" type="mmj_uuid">
            <generator strategy="NONE"/>
        </id>

        <field name="ownerId" type="mmj_uuid"/>
        <field name="externalCardId" type="mmj_uuid"/>
        <field name="status" length="255" nullable="true"/>
        <field name="rawData" type="text" nullable="true"/>
        <field name="createdAt" type="datetime_immutable"/>
        <field name="completedAt" type="datetime_immutable" nullable="true"/>
        <field name="failedAt" type="datetime_immutable" nullable="true"/>

        <embedded name="amount" class="Money\Money"/>
    </entity>
</doctrine-mapping>
