import datetime from . import Base from sqlalchemy import Column, Integer, String, BIGINT, TIMESTAMP class WarnModel(Base): __tablename__ = 'warns' id = Column(Integer, primary_key=True) server_id = Column(BIGINT) user_id = Column(BIGINT) reason = Column(String) created_at = Column(TIMESTAMP, default=datetime.datetime.now()) def __repr__(self): return "" \ % (self.server_id, self.user_id, self.reason, self.created_at)