Files
poap-reddit-bot/poapbot/settings/admin.py
Bad_Investment cbfa50572e huge refactor
2021-05-16 16:39:41 -07:00

15 lines
364 B
Python

import ormar
from datetime import datetime
from typing import List, Optional
from . import BaseMeta
from .event import Event
class Admin(ormar.Model):
class Meta(BaseMeta):
tablename = "admins"
constraints = [ormar.UniqueColumns('username')]
id: str = ormar.Integer(primary_key=True)
username: str = ormar.String(max_length=100)