mirror of
https://gitflic.ru/project/maks1ms/ocab.git
synced 2025-11-28 10:21:55 +03:00
15 lines
399 B
Python
15 lines
399 B
Python
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)
|