Initial commit
This commit is contained in:
commit
8b18f2439c
13 changed files with 960 additions and 0 deletions
11
db/models/user.py
Normal file
11
db/models/user.py
Normal 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)
|
Loading…
Add table
Add a link
Reference in a new issue