refactor: Add index field to DuckDbMessageModel in monitor schema
This commit adds the `index` field to the `DuckDbMessageModel` class in the `monitor/schema.py` file. The `index` field is of type `int` and is used to store the index value for the message. This modification enhances the schema of the `DuckDbMessageModel` and allows for more efficient querying and sorting of messages based on their index.
This commit is contained in:
parent
6921d61300
commit
d633e64439
1 changed files with 1 additions and 0 deletions
|
|
@ -82,6 +82,7 @@ class TransactionModelResponse(DefaultModel):
|
|||
|
||||
|
||||
class DuckDbMessageModel(DefaultModel):
|
||||
index: int
|
||||
flow_id: str | None = Field(default=None, alias="flow_id")
|
||||
timestamp: datetime = Field(default_factory=lambda: datetime.now(timezone.utc))
|
||||
sender: str
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue