<?xml version="1.0" encoding="UTF-8"?>
<doctrine-mongo-mapping xmlns="http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping"
                        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                        xsi:schemaLocation="http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping
                        http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping.xsd">

    <mapped-superclass name="FOS\OAuthServerBundle\Document\AuthCode">
        <field field-name="token" type="string" unique="true" />
        <field field-name="redirectUri" type="string" />
        <field field-name="expiresAt" type="int" nullable="true" />
        <field field-name="scope" type="string" nullable="true" />
    </mapped-superclass>
</doctrine-mongo-mapping>
