mirror of
https://gitflic.ru/project/alt-gnome/karkas.git
synced 2025-09-26 18:29:06 +03:00
Добавлены новые методы и изменены старые в API модуля DataBase.
This commit is contained in:
@@ -4,7 +4,6 @@ import peewee as pw
|
||||
class Chats(pw.Model):
|
||||
class Meta:
|
||||
...
|
||||
chat_id = pw.IntegerField(null=False)
|
||||
chat_name = pw.CharField(null=False)
|
||||
chat_type = pw.IntegerField(null=False, default=10)
|
||||
chat_all_stat = pw.IntegerField(null=False)
|
||||
|
@@ -4,7 +4,6 @@ import peewee as pw
|
||||
class Users(pw.Model):
|
||||
class Meta:
|
||||
...
|
||||
user_id = pw.IntegerField(null=False)
|
||||
user_tag = pw.CharField(null=True)
|
||||
user_name = pw.CharField(null=False) # до 255 символов
|
||||
user_role = pw.IntegerField(null=True, default=3)
|
||||
|
Reference in New Issue
Block a user