1
0
Fork 0
This repository has been archived on 2024-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
Administrator-py/db/InviteRole.py
2020-11-02 12:00:11 +01:00

14 lines
457 B
Python

from db import Base
from sqlalchemy import Column, BigInteger, String
class InviteRole(Base):
__tablename__ = "invite_role"
guild_id = Column(BigInteger, primary_key=True)
invite_code = Column(String, primary_key=True)
role_id = Column(BigInteger, nullable=False)
def __init__(self, guild_id: int, invite_code: str, role_id: int):
self.guild_id = guild_id
self.role_id = role_id
self.invite_code = invite_code