Garde-Havoc/bot/models/users.py

13 lines
342 B
Python
Raw Permalink Normal View History

2024-12-18 22:17:51 +01:00
from peewee import *
from models.base import BaseModel
import datetime
class User(BaseModel):
username = CharField(unique=True)
mc_name = CharField(unique=True)
mc_uuid = CharField(unique=True)
is_admin = BooleanField(default=False)
registration_date = DateTimeField(default=datetime.datetime.now())
User.create_table()