feat(template): per-experiment daily record template — rename/add/hide fields, custom_fields JSONB

This commit is contained in:
Experiments DB Dev
2026-04-15 13:56:17 -04:00
parent 80fb1c6e27
commit 86a56427b7
10 changed files with 570 additions and 189 deletions
@@ -0,0 +1,5 @@
-- Add template field to experiments (JSON array of field definitions)
ALTER TABLE "experiments" ADD COLUMN "template" JSONB NOT NULL DEFAULT '[]';
-- Add custom_fields to daily_statuses (stores values for non-builtin fields)
ALTER TABLE "daily_statuses" ADD COLUMN "custom_fields" JSONB;