Table and column metadata
View as MarkdownIdentity
Section titled “Identity”SapportaMeta, SapportaTableInputMeta, ColumnMeta, and ChildMeta from
@sapporta/server.
Contract
Section titled “Contract”- Table metadata includes
label, requiredrowLabelColumns,rowScope,immutable,references,defaultSort,children,columns, andsearch. - Child metadata includes
table,foreignKey,label,columns,defaultSort, andwidth. - Column metadata includes semantic kind, formatting, label, visibility, width
bounds, additive behavior, color/zero/strong hints, notes, and
apiWritable. - Select options belong to the Drizzle column. Use Sapporta
select()or raw Drizzletext(name, { enum: options }); schema extraction serializes the same option list for browser controls. - Application validation belongs to the top-level
validate()callback onsapportaTable(). It composes with structural column validation. apiWritable: falseremoves a column from generated write schemas and forms, and generated table APIs reject callers that submit it. Reference-levelapiSettable: falseapplies the same policy to a server-authored foreign key.- Visual metadata does not replace server authorization.