summaryrefslogtreecommitdiff
path: root/makima/src/db/models.rs
diff options
context:
space:
mode:
authorsoryu <soryu@soryu.co>2026-02-16 00:28:16 +0000
committerGitHub <noreply@github.com>2026-02-16 00:28:16 +0000
commita9da99085bc0b1f94e13cb27639915fd1398ccbe (patch)
tree7b990499368002af8aa72b8e7b619674d8d5c654 /makima/src/db/models.rs
parentbf087f48af2962d884b861345ae52be4f4a54daa (diff)
downloadsoryu-a9da99085bc0b1f94e13cb27639915fd1398ccbe.tar.gz
soryu-a9da99085bc0b1f94e13cb27639915fd1398ccbe.zip
feat: track directive goal history for intelligent re-planning (#63)
* WIP: heartbeat checkpoint * feat: soryu-co/soryu - makima: Save previous goal on update and include history in re-planning prompt
Diffstat (limited to 'makima/src/db/models.rs')
-rw-r--r--makima/src/db/models.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/makima/src/db/models.rs b/makima/src/db/models.rs
index 6ec6cf4..19ebb13 100644
--- a/makima/src/db/models.rs
+++ b/makima/src/db/models.rs
@@ -2723,6 +2723,16 @@ pub struct Directive {
pub updated_at: DateTime<Utc>,
}
+/// A historical record of a directive goal change.
+#[derive(Debug, Clone, FromRow, Serialize, Deserialize, ToSchema)]
+#[serde(rename_all = "camelCase")]
+pub struct DirectiveGoalHistory {
+ pub id: Uuid,
+ pub directive_id: Uuid,
+ pub goal: String,
+ pub created_at: DateTime<Utc>,
+}
+
/// A step in a directive's DAG.
#[derive(Debug, Clone, FromRow, Serialize, Deserialize, ToSchema)]
#[serde(rename_all = "camelCase")]