Добавлены новые методы и изменены старые в API модуля DataBase.

This commit is contained in:
Armatik
2024-01-02 21:26:09 +03:00
parent 7918620b99
commit 649e780109
5 changed files with 186 additions and 28 deletions

View File

@@ -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)

View File

@@ -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)