<?xml version="1.0" encoding="UTF-8" ?>

<!--

 This file is part of the Sylius package.

 (c) Sylius Sp. z o.o.

 For the full copyright and license information, please view the LICENSE
 file that was distributed with this source code.

-->

<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">
    <mapped-superclass name="Sylius\Component\Addressing\Model\AddressLogEntry" table="sylius_address_log_entries">
        <id name="id" column="id" type="integer">
            <generator strategy="AUTO" />
        </id>

        <field name="action" column="action" type="string" />
        <field name="loggedAt" column="logged_at" type="datetime" />
        <field name="objectId" column="object_id" length="64" nullable="true" />
        <field name="objectClass" column="object_class" type="string" />
        <field name="version" column="version" type="integer" />
        <field name="data" column="data" type="json" nullable="true">
            <options>
                <option name="jsonb">true</option>
            </options>
        </field>
        <field name="username" column="username" type="string" nullable="true" />
    </mapped-superclass>
</doctrine-mapping>
