save lxmf message timestamp in db

This commit is contained in:
liamcottle
2024-05-04 05:14:48 +12:00
parent 96735c4bac
commit ba5298b473
2 changed files with 5 additions and 0 deletions

View File

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