added syscreatedat in trustee

This commit is contained in:
ValueOn AG 2026-04-14 00:21:59 +02:00
parent 35209f7f80
commit d664cdce00

View file

@ -268,6 +268,18 @@ class TrusteeDocument(PowerOnModel):
- The feature instance IS the organisation - The feature instance IS the organisation
- Contracts are eliminated from the model - Contracts are eliminated from the model
""" """
sysCreatedAt: Optional[float] = Field(
default=None,
description="Record creation timestamp (UTC, set by system)",
json_schema_extra={
"label": "Erstellt am",
"frontend_type": "timestamp",
"frontend_readonly": True,
"frontend_required": False,
"frontend_visible": True,
"system": True,
},
)
id: str = Field( id: str = Field(
default_factory=lambda: str(uuid.uuid4()), default_factory=lambda: str(uuid.uuid4()),
description="Unique document ID", description="Unique document ID",
@ -380,6 +392,18 @@ class TrusteePosition(PowerOnModel):
A position can have up to two document references: documentId (Beleg) and bankDocumentId (Bank-Referenz). A position can have up to two document references: documentId (Beleg) and bankDocumentId (Bank-Referenz).
One document (e.g. bank statement) can generate many positions. One document (e.g. bank statement) can generate many positions.
""" """
sysCreatedAt: Optional[float] = Field(
default=None,
description="Record creation timestamp (UTC, set by system)",
json_schema_extra={
"label": "Erstellt am",
"frontend_type": "timestamp",
"frontend_readonly": True,
"frontend_required": False,
"frontend_visible": True,
"system": True,
},
)
id: str = Field( id: str = Field(
default_factory=lambda: str(uuid.uuid4()), default_factory=lambda: str(uuid.uuid4()),
description="Unique position ID", description="Unique position ID",