<?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\Bundle\PayumBundle\Model\PaymentSecurityToken" table="sylius_payment_security_token">

        <id name="hash" column="hash" type="string" />

        <field name="details" column="details" type="object" nullable="true" />

        <field name="afterUrl" column="after_url" type="text" nullable="true" />

        <field name="targetUrl" column="target_url" type="text" nullable="false" />

        <field name="gatewayName" column="gateway_name" type="string" length="255" nullable="false" />

    </mapped-superclass>
</doctrine-mapping>
