<?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\Application\Notification\Notification" table="mmj_notification">
        <id name="id" type="guid">
            <generator strategy="NONE"/>
        </id>

        <field name="userId" type="guid"/>
        <field name="correlationId" type="guid"/>
        <field name="type" length="250"/>
        <field name="title" length="250"/>
        <field name="message" length="250"/>
        <field name="actionLabel" length="250" nullable="true"/>
        <field name="importance" type="smallint"/>
        <field name="extras" type="json_array">
            <options>
                <option name="jsonb">true</option>
            </options>
        </field>
        <field name="createdAt" type="datetime_immutable"/>
        <field name="deletedAt" type="datetime_immutable" nullable="true"/>
        <field name="displayAt" type="datetime_immutable"/>
        <field name="readAt" type="datetime_immutable" nullable="true"/>
    </entity>
</doctrine-mapping>
