@codified/cli 0.2.3 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/migrations/005_collection_plans.sql +17 -0
- package/dist/index.js +200 -190
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
CREATE TABLE IF NOT EXISTS collection_plans (
|
|
2
|
+
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
|
|
3
|
+
gap_ids TEXT[] NOT NULL DEFAULT '{}',
|
|
4
|
+
method_type TEXT NOT NULL,
|
|
5
|
+
method_config JSONB NOT NULL DEFAULT '{}',
|
|
6
|
+
status TEXT NOT NULL DEFAULT 'pending',
|
|
7
|
+
priority REAL NOT NULL DEFAULT 0.5,
|
|
8
|
+
questions TEXT[] NOT NULL DEFAULT '{}',
|
|
9
|
+
success_criteria TEXT[] NOT NULL DEFAULT '{}',
|
|
10
|
+
external_study_id TEXT,
|
|
11
|
+
metadata JSONB NOT NULL DEFAULT '{}',
|
|
12
|
+
created_at TIMESTAMPTZ NOT NULL DEFAULT now(),
|
|
13
|
+
updated_at TIMESTAMPTZ NOT NULL DEFAULT now(),
|
|
14
|
+
completed_at TIMESTAMPTZ
|
|
15
|
+
);
|
|
16
|
+
CREATE INDEX IF NOT EXISTS idx_collection_plans_status ON collection_plans(status);
|
|
17
|
+
CREATE INDEX IF NOT EXISTS idx_collection_plans_created ON collection_plans(created_at DESC);
|