Skip to content

Commit 2859b11

Browse files
committed
feat: updated schema export from constructive-db (consolidated compute + platform_function_graph)
Schema consolidation: - constructive-compute: function definitions, graph CRUD, invocations at all scopes (platform/org/app), execution logs, secrets — in constructive_compute_public/private - constructive-platform-function-graph: merkle data store with clean function names (get_all, init_empty_repo, etc.) — in constructive_platform_function_graph_public/private - constructive-compute-stubs: updated FK target stubs (services, infra, users) Removed: constructive-compute-fbp (merged into constructive-compute) Stripped: all RLS policies and grants (no security layer)
1 parent 49682d5 commit 2859b11

2,214 files changed

Lines changed: 18761 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
__tests__
2+
jest.config.js
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
EXTENSION = constructive-compute-stubs
2+
DATA = sql/constructive-compute-stubs--0.0.1.sql
3+
4+
PG_CONFIG = pg_config
5+
PGXS := $(shell $(PG_CONFIG) --pgxs)
6+
include $(PGXS)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# constructive-compute-stubs extension
2+
comment = 'constructive-compute-stubs module'
3+
default_version = '0.0.1'
4+
relocatable = false
5+
requires = 'plpgsql,pgpm-inflection,pgpm-stamps'
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
-- Deploy: schemas/constructive_infra_private/schema
2+
-- made with <3 @ constructive.io
3+
4+
5+
6+
7+
CREATE SCHEMA "constructive_infra_private";
8+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
-- Deploy: schemas/constructive_infra_public/schema
2+
-- made with <3 @ constructive.io
3+
4+
5+
6+
7+
CREATE SCHEMA "constructive_infra_public";
8+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
-- Deploy: schemas/constructive_infra_public/tables/platform_namespace_events/alterations/alt0000001918
2+
-- made with <3 @ constructive.io
3+
4+
-- requires: schemas/constructive_infra_public/schema
5+
-- requires: schemas/constructive_infra_public/tables/platform_namespace_events/table
6+
7+
8+
ALTER TABLE "constructive_infra_public".platform_namespace_events
9+
DISABLE ROW LEVEL SECURITY;
10+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
-- Deploy: schemas/constructive_infra_public/tables/platform_namespace_events/alterations/alt0000001919
2+
-- made with <3 @ constructive.io
3+
4+
-- requires: schemas/constructive_infra_public/schema
5+
-- requires: schemas/constructive_infra_public/tables/platform_namespace_events/table
6+
7+
8+
COMMENT ON TABLE "constructive_infra_public".platform_namespace_events IS E'Namespace lifecycle events — audit log of creation, activation, deactivation, label changes';
9+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
-- Deploy: schemas/constructive_infra_public/tables/platform_namespace_events/columns/actor_id/alterations/alt0000001928
2+
-- made with <3 @ constructive.io
3+
4+
-- requires: schemas/constructive_infra_public/schema
5+
-- requires: schemas/constructive_infra_public/tables/platform_namespace_events/columns/actor_id/column
6+
7+
8+
COMMENT ON COLUMN "constructive_infra_public".platform_namespace_events.actor_id IS E'User who triggered this event (NULL for system/automated)';
9+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
-- Deploy: schemas/constructive_infra_public/tables/platform_namespace_events/columns/actor_id/column
2+
-- made with <3 @ constructive.io
3+
4+
-- requires: schemas/constructive_infra_public/schema
5+
-- requires: schemas/constructive_infra_public/tables/platform_namespace_events/table
6+
7+
8+
ALTER TABLE "constructive_infra_public".platform_namespace_events
9+
ADD COLUMN actor_id uuid;
10+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
-- Deploy: schemas/constructive_infra_public/tables/platform_namespace_events/columns/cpu_millicores/alterations/alt0000001931
2+
-- made with <3 @ constructive.io
3+
4+
-- requires: schemas/constructive_infra_public/schema
5+
-- requires: schemas/constructive_infra_public/tables/platform_namespace_events/columns/cpu_millicores/column
6+
7+
8+
COMMENT ON COLUMN "constructive_infra_public".platform_namespace_events.cpu_millicores IS 'CPU usage in millicores at time of event';
9+

0 commit comments

Comments
 (0)