rumine-api-wrapper/db/sql_schemas/Whitelist.py

14 lines
405 B
Python
Raw Normal View History

2024-04-15 13:18:31 +02:00
from .Base import Base
from sqlalchemy import Column, Integer, String, TIMESTAMP
from sqlalchemy.sql import func
class Whitelist(Base):
__tablename__ = 'whitelist'
id = Column(Integer, primary_key=True, autoincrement=True)
player = Column(String(16), nullable=False)
discord = Column(String(36), nullable=True, default=None)
added_on = Column(TIMESTAMP, server_default=func.now())