added tortoise as dependency, for settings update

This commit is contained in:
kiriharu 2021-01-17 18:08:17 +03:00
parent f6aff5a9ef
commit 1bd0b6e78e
3 changed files with 8 additions and 0 deletions

View File

@ -13,6 +13,7 @@ core = {path = "../core"}
aioinflux = "^0.9.0" aioinflux = "^0.9.0"
loguru = "^0.5.3" loguru = "^0.5.3"
whois-vu = "^0.3.0" whois-vu = "^0.3.0"
tortoise-orm = "^0.16.19"
[tool.poetry.dev-dependencies] [tool.poetry.dev-dependencies]

View File

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