<?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:gedmo="http://gediminasm.org/schemas/orm/doctrine-extensions-mapping">

    <mapped-superclass name="Sylius\Component\Review\Model\Review" table="sylius_review">
        <id name="id" type="integer" column="id">
            <generator strategy="AUTO" />
        </id>
        <field name="title" type="string" column="title" nullable="true" />
        <field name="rating" type="integer" column="rating" />
        <field name="comment" type="text" column="comment" nullable="true" />
        <field name="status" type="string" column="status" length="255" />
        <field name="createdAt" column="created_at" type="datetime">
            <gedmo:timestampable on="create" />
        </field>
        <field name="updatedAt" column="updated_at" type="datetime" nullable="true">
            <gedmo:timestampable on="update" />
        </field>
    </mapped-superclass>

</doctrine-mapping>
