# Copyright © 2017 <NAME> <<EMAIL>>
# Copyright © 2017 <NAME> <<EMAIL>>

from sqlalchemy import Column, Integer, String, ForeignKey
from DB.Entities import Base


class RecoveryToken(Base):
    """
    Object model for the recovery of a lost account
    """
    __tablename__ = 'recovery_tokens'

    user_id = Column(Integer,
                     ForeignKey('users.id'))
    recovery_token = Column(String, primary_key=True)
    expiration_date = Column(String, nullable=False, unique=True)

# Copyright © 2017 <NAME> <<EMAIL>>
# Copyright © 2017 <NAME> <<EMAIL>>

from sqlalchemy import Column, Integer, String, ForeignKey
from DB.Entities import Base


class RecoveryToken(Base):
    """
    Object model for the recovery of a lost account
    """
    __tablename__ = 'recovery_tokens'

    user_id = Column(Integer,
                     ForeignKey('users.id'))
    recovery_token = Column(String, primary_key=True)
    expiration_date = Column(String, nullable=False, unique=True)

# Copyright © 2017 <NAME> <<EMAIL>> # Copyright © 2017 <NAME> <<EMAIL>> Object model for the recovery of a lost account