Add message_id and chat_id to CachedFile

This commit is contained in:
2022-12-30 23:01:21 +01:00
parent 53623592ec
commit 339ae64363
2 changed files with 32 additions and 0 deletions

View File

@@ -16,4 +16,8 @@ class CachedFile(ormar.Model):
id: int = ormar.Integer(primary_key=True) # type: ignore
object_id: int = ormar.Integer(index=True) # type: ignore
object_type: str = ormar.String(max_length=8, index=True) # type: ignore
message_id: int = ormar.BigInteger() # type: ignore
chat_id: int = ormar.BigInteger() # type: ignore
data: dict = ormar.JSON() # type: ignore