spine-framework 0.3.37 → 0.3.38
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.
|
@@ -20,22 +20,7 @@ VALUES (
|
|
|
20
20
|
NULL
|
|
21
21
|
);
|
|
22
22
|
|
|
23
|
-
--
|
|
24
|
-
-- 2. MASTER SYSTEM ACCOUNT
|
|
25
|
-
-- ============================================
|
|
26
|
-
|
|
27
|
-
INSERT INTO public.accounts (id, slug, display_name, description, data, is_active, design_schema, validation_schema, type_id)
|
|
28
|
-
VALUES (
|
|
29
|
-
gen_random_uuid(),
|
|
30
|
-
'spine-system',
|
|
31
|
-
'Spine System',
|
|
32
|
-
'Master system account for internal Spine operations',
|
|
33
|
-
'{}'::jsonb,
|
|
34
|
-
true,
|
|
35
|
-
'{}'::jsonb,
|
|
36
|
-
'{}'::jsonb,
|
|
37
|
-
gen_random_uuid() -- placeholder, will update after types seeded
|
|
38
|
-
);
|
|
23
|
+
-- NOTE: System account inserted after types are seeded (section 5) to satisfy FK constraint.
|
|
39
24
|
|
|
40
25
|
-- ============================================
|
|
41
26
|
-- 3. SYSTEM APP (spine-core)
|
|
@@ -143,6 +128,21 @@ BEGIN
|
|
|
143
128
|
true
|
|
144
129
|
);
|
|
145
130
|
|
|
131
|
+
-- 2. MASTER SYSTEM ACCOUNT (inserted here to satisfy FK on type_id)
|
|
132
|
+
INSERT INTO public.accounts (id, slug, display_name, description, data, is_active, design_schema, validation_schema, type_id)
|
|
133
|
+
SELECT
|
|
134
|
+
gen_random_uuid(),
|
|
135
|
+
'spine-system',
|
|
136
|
+
'Spine System',
|
|
137
|
+
'Master system account for internal Spine operations',
|
|
138
|
+
'{}'::jsonb,
|
|
139
|
+
true,
|
|
140
|
+
'{}'::jsonb,
|
|
141
|
+
'{}'::jsonb,
|
|
142
|
+
id
|
|
143
|
+
FROM public.types WHERE slug = 'account' LIMIT 1
|
|
144
|
+
ON CONFLICT (slug) DO NOTHING;
|
|
145
|
+
|
|
146
146
|
-- 5.2 people type
|
|
147
147
|
INSERT INTO public.types (id, app_id, kind, slug, name, description, design_schema, validation_schema, ownership, is_active)
|
|
148
148
|
VALUES (
|