from sqlalchemy import Column, BigInteger, Integer, String, ForeignKey

from src import constants as const


class User(const.BASE):
    __tablename__ = 'user'

    uid = Column(BigInteger, primary_key=True)
    username = Column(String)
    reaction_count = Column(Integer)
    from_server = Column(BigInteger, ForeignKey('server.server_id'), nullable=False)

    def __repr__(self):
        return (f"ID: [{self.uid}], "
                f"Username [{self.username}], "
                f"Reaction count: [{self.reaction_count}], "
                f"From_server: [{self.from_server}]")

02b91d8927c20e2f89eb151251f088fa16837b26
<mask token>


class User(const.BASE):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

<mask token>


class User(const.BASE):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

    def __repr__(self):
        return (
            f'ID: [{self.uid}], Username [{self.username}], Reaction count: [{self.reaction_count}], From_server: [{self.from_server}]'
            )

<mask token>


class User(const.BASE):
    __tablename__ = 'user'
    uid = Column(BigInteger, primary_key=True)
    username = Column(String)
    reaction_count = Column(Integer)
    from_server = Column(BigInteger, ForeignKey('server.server_id'),
        nullable=False)

    def __repr__(self):
        return (
            f'ID: [{self.uid}], Username [{self.username}], Reaction count: [{self.reaction_count}], From_server: [{self.from_server}]'
            )

from sqlalchemy import Column, BigInteger, Integer, String, ForeignKey
from src import constants as const


class User(const.BASE):
    __tablename__ = 'user'
    uid = Column(BigInteger, primary_key=True)
    username = Column(String)
    reaction_count = Column(Integer)
    from_server = Column(BigInteger, ForeignKey('server.server_id'),
        nullable=False)

    def __repr__(self):
        return (
            f'ID: [{self.uid}], Username [{self.username}], Reaction count: [{self.reaction_count}], From_server: [{self.from_server}]'
            )

from sqlalchemy import Column, BigInteger, Integer, String, ForeignKey

from src import constants as const


class User(const.BASE):
    __tablename__ = 'user'

    uid = Column(BigInteger, primary_key=True)
    username = Column(String)
    reaction_count = Column(Integer)
    from_server = Column(BigInteger, ForeignKey('server.server_id'), nullable=False)

    def __repr__(self):
        return (f"ID: [{self.uid}], "
                f"Username [{self.username}], "
                f"Reaction count: [{self.reaction_count}], "
                f"From_server: [{self.from_server}]")
