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/Presentation.py

16 lines
478 B
Python
Raw Normal View History

2020-07-23 21:29:02 +02:00
from db import Base
from sqlalchemy import Column, Integer, BigInteger
class Presentation(Base):
__tablename__ = "presentations"
id = Column(Integer, primary_key=True)
channel = Column(BigInteger, nullable=False)
role = Column(BigInteger, nullable=False)
guild = Column(BigInteger, nullable=False, unique=True)
def __init__(self, guild: int, channel: int, role: int):
self.guild = guild
self.channel = channel
self.role = role