<?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\Attribute\Model\AttributeValue" table="sylius_attribute_value">
        <id name="id" column="id" type="integer">
            <generator strategy="AUTO" />
        </id>

        <field type="string" name="localeCode" column="locale_code" nullable="true" />

        <field name="text" column="text_value" type="text" nullable="true" />
        <field name="boolean" column="boolean_value" type="boolean" nullable="true" />
        <field name="integer" column="integer_value" type="integer" nullable="true" />
        <field name="float" column="float_value" type="float" nullable="true" />
        <field name="datetime" column="datetime_value" type="datetime" nullable="true" />
        <field name="date" column="date_value" type="date" nullable="true" />
        <field name="json" column="json_value" type="json" nullable="true">
            <options>
                <option name="jsonb">true</option>
            </options>
        </field>
    </mapped-superclass>

</doctrine-mapping>
