"""This manages FormIO Token Data."""

from .base_model import BaseModel
from .db import db


class FormIOToken(BaseModel, db.Model):
    """FormIOToken Model for storing formio token."""

    id = db.Column(db.Integer, primary_key=True)
    keycloak_role = db.Column(db.String(50), nullable=False)
    formio_token = db.Column(db.String(500), nullable=False)
    formio_role = db.Column(db.String(50), nullable=False)
    created = db.Column(db.DateTime, nullable=False)
