ocrd_network.models.workflow module¶
- class ocrd_network.models.workflow.DBWorkflowScript(*args, _id: PydanticObjectId | None = None, revision_id: UUID | None = None, workflow_id: str, content: str, content_hash: str)[source]¶
Bases:
Document
Model to store a workflow-script in the database
Create a new model by parsing and validating input data from keyword arguments.
Raises ValidationError if the input data cannot be parsed to form a valid model.
- workflow_id: str¶
- content: str¶
- content_hash: str¶
- id: PydanticObjectId | None¶
- revision_id: UUID | None¶