Reorganize repo structure and standards references
This commit is contained in:
1 parent
3cb93a81be
commit
be2054274d
5885 files changed
+2588
-195
No files matched your search
+24
@@ -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