0
0
mirror of https://gitflic.ru/project/maks1ms/ocab.git synced 2025-11-28 10:21:55 +03:00

Merged with private/new-module-system

This commit is contained in:
2024-07-10 19:30:23 +03:00
parent 2a2b9e15e8
commit 370b4fc648
92 changed files with 987 additions and 279 deletions

View File

@@ -0,0 +1,14 @@
import peewee as pw
from .db import database_proxy
class Users(pw.Model):
class Meta:
database = database_proxy
user_tag = pw.CharField(null=True)
user_name = pw.CharField(null=False) # до 255 символов
user_role = pw.IntegerField(null=True, default=3)
user_stats = pw.IntegerField(null=True, default=0)
user_rep = pw.IntegerField(null=True, default=0)