mirror of
https://gitflic.ru/project/alt-gnome/karkas.git
synced 2025-04-04 08:33:49 +03:00
14 lines
312 B
Python
14 lines
312 B
Python
import peewee as pw
|
|
|
|
from .db import database_proxy
|
|
|
|
|
|
class UserStats(pw.Model):
|
|
class Meta:
|
|
database = database_proxy
|
|
|
|
chat_id = pw.IntegerField(null=False)
|
|
user_id = pw.IntegerField(null=False)
|
|
date = pw.DateField(null=False)
|
|
messages_count = pw.IntegerField(null=False, default=0)
|