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
16622522be
commit
23f199e57f
1 changed files with 1 additions and 0 deletions
|
|
@ -82,6 +82,7 @@ class TransactionModelResponse(DefaultModel):
|
||||||
|
|
||||||
|
|
||||||
class DuckDbMessageModel(DefaultModel):
|
class DuckDbMessageModel(DefaultModel):
|
||||||
|
index: int
|
||||||
flow_id: str | None = Field(default=None, alias="flow_id")
|
flow_id: str | None = Field(default=None, alias="flow_id")
|
||||||
timestamp: datetime = Field(default_factory=lambda: datetime.now(timezone.utc))
|
timestamp: datetime = Field(default_factory=lambda: datetime.now(timezone.utc))
|
||||||
sender: str
|
sender: str
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue