2020-01-15 22:56:54 +01:00
|
|
|
import orm
|
|
|
|
from . import database, metadata
|
2019-09-29 18:31:01 +02:00
|
|
|
|
2019-10-06 01:49:30 +02:00
|
|
|
|
2020-01-15 22:56:54 +01:00
|
|
|
class WarnModel(orm.Model):
|
2019-09-29 18:31:01 +02:00
|
|
|
__tablename__ = 'warns'
|
2020-01-15 22:56:54 +01:00
|
|
|
__database__ = database
|
|
|
|
__metadata__ = metadata
|
|
|
|
|
|
|
|
id = orm.Integer(primary_key=True)
|
|
|
|
server_id = orm.String(max_length=18)
|
|
|
|
user_id = orm.String(max_length=18)
|
|
|
|
reason = orm.String(max_length=255)
|
|
|
|
created_at = orm.DateTime()
|