spine-framework 0.3.131 → 0.3.132
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.
|
@@ -57,9 +57,9 @@ CREATE TABLE IF NOT EXISTS public.roles (
|
|
|
57
57
|
is_active boolean DEFAULT true, is_protected boolean DEFAULT false,
|
|
58
58
|
app_id uuid, account_id uuid,
|
|
59
59
|
created_at timestamptz DEFAULT now(), updated_at timestamptz DEFAULT now(),
|
|
60
|
-
UNIQUE(slug)
|
|
61
60
|
type_id uuid,
|
|
62
61
|
created_by uuid,
|
|
62
|
+
UNIQUE(slug)
|
|
63
63
|
);
|
|
64
64
|
CREATE TABLE IF NOT EXISTS public.items (
|
|
65
65
|
id uuid PRIMARY KEY DEFAULT gen_random_uuid(),
|
|
@@ -139,9 +139,9 @@ CREATE TABLE IF NOT EXISTS public.pipelines (
|
|
|
139
139
|
config jsonb DEFAULT '{}', metadata jsonb DEFAULT '{}',
|
|
140
140
|
is_active boolean DEFAULT true, is_system boolean DEFAULT false,
|
|
141
141
|
created_at timestamptz DEFAULT now(), updated_at timestamptz DEFAULT now(),
|
|
142
|
-
UNIQUE(app_id, slug)
|
|
143
142
|
type_id uuid,
|
|
144
143
|
created_by uuid,
|
|
144
|
+
UNIQUE(app_id, slug)
|
|
145
145
|
);
|
|
146
146
|
CREATE TABLE IF NOT EXISTS public.pipeline_executions (
|
|
147
147
|
id uuid PRIMARY KEY DEFAULT gen_random_uuid(),
|
|
@@ -151,7 +151,7 @@ CREATE TABLE IF NOT EXISTS public.pipeline_executions (
|
|
|
151
151
|
input_data jsonb DEFAULT '{}', output_data jsonb DEFAULT '{}',
|
|
152
152
|
metadata jsonb DEFAULT '{}', created_by uuid,
|
|
153
153
|
created_at timestamptz DEFAULT now(),
|
|
154
|
-
CONSTRAINT fk_pipeline_executions_pipeline
|
|
154
|
+
CONSTRAINT fk_pipeline_executions_pipeline
|
|
155
155
|
FOREIGN KEY (pipeline_id) REFERENCES public.pipelines(id) ON DELETE CASCADE
|
|
156
156
|
);
|
|
157
157
|
CREATE TABLE IF NOT EXISTS public.triggers (
|
|
@@ -161,8 +161,8 @@ CREATE TABLE IF NOT EXISTS public.triggers (
|
|
|
161
161
|
config jsonb DEFAULT '{}', metadata jsonb DEFAULT '{}',
|
|
162
162
|
is_active boolean DEFAULT true, is_system boolean DEFAULT false,
|
|
163
163
|
created_at timestamptz DEFAULT now(), updated_at timestamptz DEFAULT now(),
|
|
164
|
-
UNIQUE(app_id, slug)
|
|
165
164
|
created_by uuid,
|
|
165
|
+
UNIQUE(app_id, slug)
|
|
166
166
|
);
|
|
167
167
|
CREATE TABLE IF NOT EXISTS public.trigger_executions (
|
|
168
168
|
id uuid PRIMARY KEY DEFAULT gen_random_uuid(),
|
|
@@ -182,8 +182,8 @@ CREATE TABLE IF NOT EXISTS public.timers (
|
|
|
182
182
|
config jsonb DEFAULT '{}', metadata jsonb DEFAULT '{}',
|
|
183
183
|
is_active boolean DEFAULT true, is_system boolean DEFAULT false,
|
|
184
184
|
created_at timestamptz DEFAULT now(), updated_at timestamptz DEFAULT now(),
|
|
185
|
-
UNIQUE(app_id, slug)
|
|
186
185
|
created_by uuid,
|
|
186
|
+
UNIQUE(app_id, slug)
|
|
187
187
|
);
|
|
188
188
|
CREATE TABLE IF NOT EXISTS public.prompt_configs (
|
|
189
189
|
id uuid PRIMARY KEY DEFAULT gen_random_uuid(),
|
|
@@ -202,8 +202,8 @@ CREATE TABLE IF NOT EXISTS public.integrations (
|
|
|
202
202
|
config jsonb DEFAULT '{}', metadata jsonb DEFAULT '{}',
|
|
203
203
|
is_active boolean DEFAULT true, is_system boolean DEFAULT false,
|
|
204
204
|
created_at timestamptz DEFAULT now(), updated_at timestamptz DEFAULT now(),
|
|
205
|
-
UNIQUE(app_id, slug)
|
|
206
205
|
created_by uuid,
|
|
206
|
+
UNIQUE(app_id, slug)
|
|
207
207
|
);
|
|
208
208
|
CREATE TABLE IF NOT EXISTS public.integration_routes (
|
|
209
209
|
id uuid PRIMARY KEY DEFAULT gen_random_uuid(),
|
|
@@ -236,8 +236,8 @@ CREATE TABLE IF NOT EXISTS public.test_runs (
|
|
|
236
236
|
config jsonb DEFAULT '{}', metadata jsonb DEFAULT '{}',
|
|
237
237
|
is_active boolean DEFAULT true, is_system boolean DEFAULT false,
|
|
238
238
|
created_at timestamptz DEFAULT now(), updated_at timestamptz DEFAULT now(),
|
|
239
|
-
UNIQUE(app_id, slug)
|
|
240
239
|
created_by uuid,
|
|
240
|
+
UNIQUE(app_id, slug)
|
|
241
241
|
);
|
|
242
242
|
CREATE TABLE IF NOT EXISTS public.test_cases (
|
|
243
243
|
id uuid PRIMARY KEY DEFAULT gen_random_uuid(),
|
|
@@ -271,8 +271,8 @@ CREATE TABLE IF NOT EXISTS public.ai_agents (
|
|
|
271
271
|
config jsonb DEFAULT '{}', metadata jsonb DEFAULT '{}',
|
|
272
272
|
is_active boolean DEFAULT true, is_system boolean DEFAULT false,
|
|
273
273
|
created_at timestamptz DEFAULT now(), updated_at timestamptz DEFAULT now(),
|
|
274
|
-
UNIQUE(app_id, slug)
|
|
275
274
|
created_by uuid,
|
|
275
|
+
UNIQUE(app_id, slug)
|
|
276
276
|
);
|
|
277
277
|
CREATE TABLE IF NOT EXISTS public.invites (
|
|
278
278
|
id uuid PRIMARY KEY DEFAULT gen_random_uuid(),
|
|
@@ -291,8 +291,8 @@ CREATE TABLE IF NOT EXISTS public.api_keys (
|
|
|
291
291
|
config jsonb DEFAULT '{}', metadata jsonb DEFAULT '{}',
|
|
292
292
|
is_active boolean DEFAULT true, is_system boolean DEFAULT false,
|
|
293
293
|
created_at timestamptz DEFAULT now(), updated_at timestamptz DEFAULT now(),
|
|
294
|
-
UNIQUE(app_id, slug)
|
|
295
294
|
created_by uuid,
|
|
295
|
+
UNIQUE(app_id, slug)
|
|
296
296
|
);
|
|
297
297
|
CREATE TABLE IF NOT EXISTS public.alerts (
|
|
298
298
|
id uuid PRIMARY KEY DEFAULT gen_random_uuid(),
|
|
@@ -310,16 +310,16 @@ CREATE TABLE IF NOT EXISTS public.item_progress (
|
|
|
310
310
|
config jsonb DEFAULT '{}', metadata jsonb DEFAULT '{}',
|
|
311
311
|
is_active boolean DEFAULT true, is_system boolean DEFAULT false,
|
|
312
312
|
created_at timestamptz DEFAULT now(), updated_at timestamptz DEFAULT now(),
|
|
313
|
-
UNIQUE(app_id, slug)
|
|
314
313
|
item_id uuid NOT NULL,
|
|
315
314
|
created_by uuid,
|
|
315
|
+
UNIQUE(app_id, slug)
|
|
316
316
|
);
|
|
317
317
|
|
|
318
318
|
CREATE TABLE IF NOT EXISTS public.account_paths (
|
|
319
319
|
ancestor_id uuid NOT NULL REFERENCES public.accounts(id) ON DELETE CASCADE,
|
|
320
320
|
descendant_id uuid NOT NULL REFERENCES public.accounts(id) ON DELETE CASCADE,
|
|
321
321
|
depth integer NOT NULL,
|
|
322
|
-
PRIMARY KEY (ancestor_id, descendant_id)
|
|
322
|
+
PRIMARY KEY (ancestor_id, descendant_id)
|
|
323
323
|
CONSTRAINT chk_account_paths_no_self CHECK (ancestor_id != descendant_id)
|
|
324
324
|
);
|
|
325
325
|
CREATE INDEX IF NOT EXISTS idx_accounts_parent_id ON public.accounts(parent_id);
|