Track HiveGrid Cloud planning reference
This commit is contained in:
1 parent
b3d5ea6764
commit
e341c5938a
5784 files changed
+1104929
-3
No files matched your search
@@ -0,0 +1,24 @@
|
||||
-- Phase 06 #21 — Plugin runtime metadata table.
|
||||
--
|
||||
-- The .wasm binary itself lives on disk; this table stores the per-tenant
|
||||
-- install record (manifest JSON, sha256, signing key, enabled flag) so
|
||||
-- the worker can resolve + verify a plugin before invoking it via the
|
||||
-- WASM sandbox.
|
||||
|
||||
CREATE TABLE "Plugin" (
|
||||
"id" TEXT NOT NULL,
|
||||
"tenantId" TEXT NOT NULL,
|
||||
"pluginId" TEXT NOT NULL,
|
||||
"version" TEXT NOT NULL,
|
||||
"manifest" JSONB NOT NULL,
|
||||
"wasmSha256" TEXT NOT NULL,
|
||||
"signaturePublicKey" TEXT NOT NULL,
|
||||
"enabled" BOOLEAN NOT NULL DEFAULT true,
|
||||
"installedAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
"updatedAt" TIMESTAMP(3) NOT NULL,
|
||||
CONSTRAINT "Plugin_pkey" PRIMARY KEY ("id")
|
||||
);
|
||||
|
||||
CREATE UNIQUE INDEX "Plugin_tenantId_pluginId_key" ON "Plugin" ("tenantId", "pluginId");
|
||||
CREATE INDEX "Plugin_tenantId_enabled_idx" ON "Plugin" ("tenantId", "enabled");
|
||||
CREATE INDEX "Plugin_pluginId_version_idx" ON "Plugin" ("pluginId", "version");
|
||||
Reference in new issue
Block a user