<?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="Gesdinet\JWTRefreshTokenBundle\Document\AbstractRefreshToken">
        <field field-name="refreshToken" type="string" unique="true" />
        <field field-name="username" type="string" />
        <field field-name="valid" type="datetime"/>
    </mapped-superclass>
</doctrine-mongo-mapping>

<?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="Gesdinet\JWTRefreshTokenBundle\Document\AbstractRefreshToken">
        <field field-name="refreshToken" type="string" unique="true" />
        <field field-name="username" type="string" />
        <field field-name="valid" type="date"/>
    </mapped-superclass>
</doctrine-mongo-mapping>

Fix date mapping for ODM
Fix date mapping for ODM