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

        <field name="userId" type="mmj_uuid"/>
        <field name="offerId" type="mmj_uuid"/>
        <field name="code" type="string" length="255"/>
        <field name="purchasedAt" type="datetime_immutable"/>
        <field name="redeemedAt" type="datetime_immutable" nullable="true"/>
    </entity>
</doctrine-mapping>
