Initial commit

This commit is contained in:
Евгений Титаренко 2023-11-30 21:01:57 +03:00
commit 8b18f2439c
13 changed files with 960 additions and 0 deletions

11
db/models/user.py Normal file
View file

@ -0,0 +1,11 @@
# from peewee import *
from tortoise.models import Model
from tortoise.fields.data import *
from db.db_conf import MAX_LOGIN_LENGTH
class User(Model):
id = IntField(pk=True)
username = CharField(max_length=MAX_LOGIN_LENGTH, null=False, unique=True)
password = TextField(null=False)
first_login = BooleanField(default=True)