DomainTableInfo
Defined in: js-api/src/domains.ts:927
Registry metadata of one domain table (see grok.dapi.domains.registry).
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
audit | boolean | Whether writes leave an in-transaction audit trail. | js-api/src/domains.ts:948 |
businessKey | string[] | Natural-key columns; empty when the table declares none. | js-api/src/domains.ts:931 |
childTables | DomainChildTableRef[] | The tables whose foreign keys point at this one. | js-api/src/domains.ts:958 |
constraints | object[] | Declared table constraints (constraints in schema.json), in declaration order. | js-api/src/domains.ts:963 |
description | string | null | What the table holds, as declared in schema.json; null when undeclared. | js-api/src/domains.ts:956 |
friendlyName? | string | The DECLARED friendlyName (friendlyName in schema.json); undefined when the table declares none — unlike singularName/pluralName, nothing is derived here, so the caller can tell a chosen label apart from the capitalized table name. | js-api/src/domains.ts:940 |
hierarchy | boolean | The table declares a tree (hierarchy in schema.json): exactly one ref column targets the table itself, and DomainTableClient.pathTo / the under filter term walk it. | js-api/src/domains.ts:952 |
nameColumn | string | null | Primary display-name column; null when the table declares none. | js-api/src/domains.ts:929 |
parentColumn | string | null | The self-referencing column the tree is built on; null off a hierarchy table. | js-api/src/domains.ts:954 |
permissions | string[] | Custom permission names the table declares (permissions in schema.json). | js-api/src/domains.ts:968 |
pluralName | string | Effective plural display name (declared, else derived from the table name). | js-api/src/domains.ts:944 |
refFilters | object | Per ref column, the declared filter its candidates are narrowed by (a smart-filter string; $<column> binds a sibling value of the row being edited). | js-api/src/domains.ts:966 |
rowAddress | "id" | "businessKey" | How an app spells a row in a URL: 'businessKey' — the business-key values (a platform table); 'id' — the canonical row id as one opaque segment (an external table, whose key values may carry any delimiter). | js-api/src/domains.ts:935 |
searchableColumns | string[] | The columns DomainQuerySpec.search matches: those declared searchable: true, else the name column, else none. | js-api/src/domains.ts:961 |
securityMode | "table" | "row" | "master" | How rows are secured: by the table's own grants, a master row's, or each row's. | js-api/src/domains.ts:946 |
singularName | string | Effective singular display name (declared, else derived from the table name). | js-api/src/domains.ts:942 |