<?xml version="1.0" encoding="UTF-8"?>
<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
                          https://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
    <entity
            name="Basango\IdentityAndAccess\Domain\Model\Entity\RefreshToken"
            repository-class="Gesdinet\JWTRefreshTokenBundle\Entity\RefreshTokenRepository"
            table="refresh_tokens"
    >
        <id name="id" type="integer">
            <generator strategy="SEQUENCE" />
            <sequence-generator sequence-name="refresh_tokens_id_seq" allocation-size="100" initial-value="1" />
        </id>
        <field name="refreshToken" type="string" column="refresh_token" length="128" unique="true"/>
        <field name="username" type="string" length="255" column="username"/>
        <field name="valid" type="datetime"/>
    </entity>
</doctrine-mapping>
