Skip to content

Assurance Schema

Description

A Notebook is a group of Cells. A kernel is a computational engine that executes the code contained in a notebook cell. Each notebook is associated with a kernel of a specific programming language or code transformer which can interpret code and produce a result. For example, a SQL notebook might use a SQLite kernel for running SQL code and an AI Prompt might prepare AI prompts for LLMs.

Table Definition
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" TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
"created_by" TEXT DEFAULT 'UNKNOWN',
"updated_at" TIMESTAMP,
"updated_by" TEXT,
"deleted_at" TIMESTAMP,
"deleted_by" TEXT,
"activity_log" TEXT
)

Columns

NameTypeDefaultNullableComment
assurance_schema_idVARCHARfalseassurance_schema primary key and internal label (not a ULID)
assurance_typeTEXTfalse’JSON Schema’, ‘XML Schema’, etc.
codeTEXTfalseIf the schema is other than JSON Schema, use this for the validation code
code_jsonTEXTtrueIf the schema is a JSON Schema or the assurance code has a JSON representation
governanceTEXTtrueJSON schema-specific governance data (description, documentation, usage, etc. in JSON)
created_atTIMESTAMPCURRENT_TIMESTAMPtrue
created_byTEXT’UNKNOWN’true
updated_atTIMESTAMPtrue
updated_byTEXTtrue
deleted_atTIMESTAMPtrue
deleted_byTEXTtrue
activity_logTEXTtrue{“isSqlDomainZodDescrMeta”:true,“isJsonSqlDomain”:true}

Constraints

NameTypeDefinition
assurance_schema_idPRIMARY KEYPRIMARY KEY (assurance_schema_id)
sqlite_autoindex_assurance_schema_1PRIMARY KEYPRIMARY KEY (assurance_schema_id)
-CHECKCHECK(json_valid(code_json) OR code_json IS NULL)
-CHECKCHECK(json_valid(governance) OR governance IS NULL)

Indexes

NameDefinition
sqlite_autoindex_assurance_schema_1PRIMARY KEY (assurance_schema_id)

Relations

er