Merge pull request #361 from Hestia-Homes/chore/tasks-inputs-column

feat(db): add inputs column to tasks
This commit is contained in:
KhalimCK 2026-07-07 12:27:40 +01:00 committed by GitHub
commit 668588d3ce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 11807 additions and 0 deletions

View file

@ -0,0 +1 @@
ALTER TABLE "tasks" ADD COLUMN "inputs" text;

File diff suppressed because it is too large Load diff

View file

@ -1828,6 +1828,13 @@
"when": 1783352788862,
"tag": "0261_fixed_excalibur",
"breakpoints": true
},
{
"idx": 262,
"version": "7",
"when": 1783420235209,
"tag": "0262_wandering_nocturne",
"breakpoints": true
}
]
}

View file

@ -18,6 +18,11 @@ export const tasks = pgTable("tasks", {
sourceId: text("source_id"), // identifier for the source (e.g., portfolio_id value)
// The task's request inputs, mirroring sub_task.inputs (JSON as text; could
// later change to JSONB). For a modelling run this is the run's config —
// portfolio id, scenario ids, filters (ADR-0008).
inputs: text("inputs"),
updatedAt: timestamp("updated_at", { precision: 6, withTimezone: true })
.defaultNow()
.$onUpdate(() => new Date())