Skip to main content

DomainTableInfo

Defined in: js-api/src/domains.ts:927

Registry metadata of one domain table (see grok.dapi.domains.registry).

Properties​

PropertyTypeDescriptionDefined in
auditbooleanWhether writes leave an in-transaction audit trail.js-api/src/domains.ts:948
businessKeystring[]Natural-key columns; empty when the table declares none.js-api/src/domains.ts:931
childTablesDomainChildTableRef[]The tables whose foreign keys point at this one.js-api/src/domains.ts:958
constraintsobject[]Declared table constraints (constraints in schema.json), in declaration order.js-api/src/domains.ts:963
descriptionstring | nullWhat the table holds, as declared in schema.json; null when undeclared.js-api/src/domains.ts:956
friendlyName?stringThe 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
hierarchybooleanThe 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
nameColumnstring | nullPrimary display-name column; null when the table declares none.js-api/src/domains.ts:929
parentColumnstring | nullThe self-referencing column the tree is built on; null off a hierarchy table.js-api/src/domains.ts:954
permissionsstring[]Custom permission names the table declares (permissions in schema.json).js-api/src/domains.ts:968
pluralNamestringEffective plural display name (declared, else derived from the table name).js-api/src/domains.ts:944
refFiltersobjectPer 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
searchableColumnsstring[]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
singularNamestringEffective singular display name (declared, else derived from the table name).js-api/src/domains.ts:942