mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-04-27 16:10:32 +00:00
save lxmf message timestamp in db
This commit is contained in:
parent
96735c4bac
commit
ba5298b473
2 changed files with 5 additions and 0 deletions
|
|
@ -23,6 +23,7 @@ class LxmfMessage(BaseModel):
|
|||
title = TextField()
|
||||
content = TextField()
|
||||
fields = TextField() # json string
|
||||
timestamp = FloatField() # timestamp of when the message was originally created (before ever being sent)
|
||||
created_at = DateTimeField(default=datetime.now)
|
||||
updated_at = DateTimeField(default=datetime.now)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue