from app.main.data_management.data_base import *


class LEPlayer(Schema.base):
    __tablename__ = 'le_player'

    id = Column(INTEGER(11), primary_key=True, nullable=False)

    player_user_id = Column(ForeignKey('user.id'), nullable=False, index=True)
    le_company_id = Column(ForeignKey('le_company.id'), nullable=False, index=True)
    player_user = relationship('User')
    le_company = relationship('LECompany')

    def __init__(self, player_user_id, le_company_id):
        self.player_user_id = player_user_id
        self.le_company_id = le_company_id