diff options
Diffstat (limited to 'makima/src/db/models.rs')
| -rw-r--r-- | makima/src/db/models.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/makima/src/db/models.rs b/makima/src/db/models.rs index 6b77563..6292e7b 100644 --- a/makima/src/db/models.rs +++ b/makima/src/db/models.rs @@ -2746,6 +2746,11 @@ pub struct DirectiveStep { /// Status: pending, ready, running, completed, failed, skipped pub status: String, pub task_id: Option<Uuid>, + /// Optional contract ID for contract-backed execution. + pub contract_id: Option<Uuid>, + /// Optional contract type (e.g. "simple", "specification", "execute"). + /// When set, the orchestrator creates a contract instead of a standalone task. + pub contract_type: Option<String>, pub order_index: i32, pub generation: i32, pub started_at: Option<DateTime<Utc>>, @@ -2871,6 +2876,10 @@ pub struct CreateDirectiveStepRequest { /// Optional order ID to auto-link this step to an order. #[serde(default)] pub order_id: Option<Uuid>, + /// Optional: create a contract for this step instead of a standalone task. + /// Valid values: "simple", "specification", "execute" + #[serde(default)] + pub contract_type: Option<String>, } /// Request to update a directive step. |
