spine-framework 0.3.130 → 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,6 +57,8 @@ 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
+ type_id uuid,
61
+ created_by uuid,
60
62
  UNIQUE(slug)
61
63
  );
62
64
  CREATE TABLE IF NOT EXISTS public.items (
@@ -137,6 +139,8 @@ CREATE TABLE IF NOT EXISTS public.pipelines (
137
139
  config jsonb DEFAULT '{}', metadata jsonb DEFAULT '{}',
138
140
  is_active boolean DEFAULT true, is_system boolean DEFAULT false,
139
141
  created_at timestamptz DEFAULT now(), updated_at timestamptz DEFAULT now(),
142
+ type_id uuid,
143
+ created_by uuid,
140
144
  UNIQUE(app_id, slug)
141
145
  );
142
146
  CREATE TABLE IF NOT EXISTS public.pipeline_executions (
@@ -147,7 +151,7 @@ CREATE TABLE IF NOT EXISTS public.pipeline_executions (
147
151
  input_data jsonb DEFAULT '{}', output_data jsonb DEFAULT '{}',
148
152
  metadata jsonb DEFAULT '{}', created_by uuid,
149
153
  created_at timestamptz DEFAULT now(),
150
- CONSTRAINT fk_pipeline_executions_pipeline
154
+ CONSTRAINT fk_pipeline_executions_pipeline
151
155
  FOREIGN KEY (pipeline_id) REFERENCES public.pipelines(id) ON DELETE CASCADE
152
156
  );
153
157
  CREATE TABLE IF NOT EXISTS public.triggers (
@@ -157,6 +161,7 @@ CREATE TABLE IF NOT EXISTS public.triggers (
157
161
  config jsonb DEFAULT '{}', metadata jsonb DEFAULT '{}',
158
162
  is_active boolean DEFAULT true, is_system boolean DEFAULT false,
159
163
  created_at timestamptz DEFAULT now(), updated_at timestamptz DEFAULT now(),
164
+ created_by uuid,
160
165
  UNIQUE(app_id, slug)
161
166
  );
162
167
  CREATE TABLE IF NOT EXISTS public.trigger_executions (
@@ -177,6 +182,7 @@ CREATE TABLE IF NOT EXISTS public.timers (
177
182
  config jsonb DEFAULT '{}', metadata jsonb DEFAULT '{}',
178
183
  is_active boolean DEFAULT true, is_system boolean DEFAULT false,
179
184
  created_at timestamptz DEFAULT now(), updated_at timestamptz DEFAULT now(),
185
+ created_by uuid,
180
186
  UNIQUE(app_id, slug)
181
187
  );
182
188
  CREATE TABLE IF NOT EXISTS public.prompt_configs (
@@ -196,6 +202,7 @@ CREATE TABLE IF NOT EXISTS public.integrations (
196
202
  config jsonb DEFAULT '{}', metadata jsonb DEFAULT '{}',
197
203
  is_active boolean DEFAULT true, is_system boolean DEFAULT false,
198
204
  created_at timestamptz DEFAULT now(), updated_at timestamptz DEFAULT now(),
205
+ created_by uuid,
199
206
  UNIQUE(app_id, slug)
200
207
  );
201
208
  CREATE TABLE IF NOT EXISTS public.integration_routes (
@@ -219,6 +226,7 @@ CREATE TABLE IF NOT EXISTS public.observability (
219
226
  app_id uuid, account_id uuid, type_id uuid,
220
227
  metric_name text, metric_value numeric, metric_unit text,
221
228
  context jsonb DEFAULT '{}', metadata jsonb DEFAULT '{}',
229
+ created_by uuid,
222
230
  created_at timestamptz DEFAULT now()
223
231
  );
224
232
  CREATE TABLE IF NOT EXISTS public.test_runs (
@@ -228,6 +236,7 @@ CREATE TABLE IF NOT EXISTS public.test_runs (
228
236
  config jsonb DEFAULT '{}', metadata jsonb DEFAULT '{}',
229
237
  is_active boolean DEFAULT true, is_system boolean DEFAULT false,
230
238
  created_at timestamptz DEFAULT now(), updated_at timestamptz DEFAULT now(),
239
+ created_by uuid,
231
240
  UNIQUE(app_id, slug)
232
241
  );
233
242
  CREATE TABLE IF NOT EXISTS public.test_cases (
@@ -262,6 +271,7 @@ CREATE TABLE IF NOT EXISTS public.ai_agents (
262
271
  config jsonb DEFAULT '{}', metadata jsonb DEFAULT '{}',
263
272
  is_active boolean DEFAULT true, is_system boolean DEFAULT false,
264
273
  created_at timestamptz DEFAULT now(), updated_at timestamptz DEFAULT now(),
274
+ created_by uuid,
265
275
  UNIQUE(app_id, slug)
266
276
  );
267
277
  CREATE TABLE IF NOT EXISTS public.invites (
@@ -270,6 +280,7 @@ CREATE TABLE IF NOT EXISTS public.invites (
270
280
  slug text NOT NULL, name text NOT NULL, description text,
271
281
  config jsonb DEFAULT '{}', metadata jsonb DEFAULT '{}',
272
282
  is_active boolean DEFAULT true, is_system boolean DEFAULT false,
283
+ created_by uuid,
273
284
  created_at timestamptz DEFAULT now(), updated_at timestamptz DEFAULT now(),
274
285
  UNIQUE(app_id, slug)
275
286
  );
@@ -280,6 +291,7 @@ CREATE TABLE IF NOT EXISTS public.api_keys (
280
291
  config jsonb DEFAULT '{}', metadata jsonb DEFAULT '{}',
281
292
  is_active boolean DEFAULT true, is_system boolean DEFAULT false,
282
293
  created_at timestamptz DEFAULT now(), updated_at timestamptz DEFAULT now(),
294
+ created_by uuid,
283
295
  UNIQUE(app_id, slug)
284
296
  );
285
297
  CREATE TABLE IF NOT EXISTS public.alerts (
@@ -298,6 +310,8 @@ CREATE TABLE IF NOT EXISTS public.item_progress (
298
310
  config jsonb DEFAULT '{}', metadata jsonb DEFAULT '{}',
299
311
  is_active boolean DEFAULT true, is_system boolean DEFAULT false,
300
312
  created_at timestamptz DEFAULT now(), updated_at timestamptz DEFAULT now(),
313
+ item_id uuid NOT NULL,
314
+ created_by uuid,
301
315
  UNIQUE(app_id, slug)
302
316
  );
303
317
 
@@ -305,7 +319,7 @@ CREATE TABLE IF NOT EXISTS public.account_paths (
305
319
  ancestor_id uuid NOT NULL REFERENCES public.accounts(id) ON DELETE CASCADE,
306
320
  descendant_id uuid NOT NULL REFERENCES public.accounts(id) ON DELETE CASCADE,
307
321
  depth integer NOT NULL,
308
- PRIMARY KEY (ancestor_id, descendant_id),
322
+ PRIMARY KEY (ancestor_id, descendant_id)
309
323
  CONSTRAINT chk_account_paths_no_self CHECK (ancestor_id != descendant_id)
310
324
  );
311
325
  CREATE INDEX IF NOT EXISTS idx_accounts_parent_id ON public.accounts(parent_id);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spine-framework",
3
- "version": "0.3.130",
3
+ "version": "0.3.132",
4
4
  "description": "Multi-tenant, modular application platform for modern SaaS systems",
5
5
  "type": "module",
6
6
  "bin": {