CREATE TABLE "assurance_schema" (
"assurance_schema_id" VARCHAR PRIMARY KEY NOT NULL,
"assurance_type" TEXT NOT NULL,
"code" TEXT NOT NULL,
"code_json" TEXT CHECK(json_valid(code_json) OR code_json IS NULL),
"governance" TEXT CHECK(json_valid(governance) OR governance IS NULL),
"created_at" TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP,
"created_by" TEXT DEFAULT 'UNKNOWN',
"updated_at" TIMESTAMPTZ,
"updated_by" TEXT,
"deleted_at" TIMESTAMPTZ,
"deleted_by" TEXT,
"activity_log" TEXT
)