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

15 lines
469 B
Python

from db import Base
from sqlalchemy import Column, BigInteger, String
class PCP(Base):
__tablename__ = "pcp"
guild_id = Column(BigInteger, primary_key=True)
roles_re = Column(String, nullable=False)
start_role_re = Column(String)
def __init__(self, guild_id: int, roles_re: str, start_role_re: str = None):
self.guild_id = guild_id
self.roles_re = roles_re
if start_role_re:
self.start_role_re = start_role_re