mirror of
https://github.com/catspace-dev/unicheckbot.git
synced 2024-11-21 21:46:32 +03:00
added tortoise as dependency, for settings update
This commit is contained in:
parent
f6aff5a9ef
commit
1bd0b6e78e
|
@ -13,6 +13,7 @@ core = {path = "../core"}
|
|||
aioinflux = "^0.9.0"
|
||||
loguru = "^0.5.3"
|
||||
whois-vu = "^0.3.0"
|
||||
tortoise-orm = "^0.16.19"
|
||||
|
||||
[tool.poetry.dev-dependencies]
|
||||
|
||||
|
|
0
apps/tgbot/tgbot/models/__init__.py
Normal file
0
apps/tgbot/tgbot/models/__init__.py
Normal file
7
apps/tgbot/tgbot/models/user.py
Normal file
7
apps/tgbot/tgbot/models/user.py
Normal file
|
@ -0,0 +1,7 @@
|
|||
from tortoise import fields, Model
|
||||
|
||||
|
||||
class User(Model):
|
||||
telegram_id = fields.IntField(pk=True)
|
||||
created_at = fields.DatetimeField(auto_now_add=True)
|
||||
updated_at = fields.DatetimeField(auto_now=True)
|
Loading…
Reference in New Issue
Block a user