AttributeTarget
Type Alias: AttributeTarget
AttributeTarget = {
column:ColumnPlan;kind:"column"; } | {column:ColumnPlan;kind:"json";path:string[]; } | {columns:ColumnPlan[];kind:"reference";relation:RelationPlan; } | {kind:"junction";relation:RelationPlan;table:TablePlan; } | {kind:"mapped";source:MappedSource; } | {column:ColumnPlan;kind:"extra";path:string[]; } | {kind:"unknown"; }
Defined in: packages/sql/src/relational/mapping.ts:16
Where a model attribute lives in the table
column: a scalar field or a single-column referencejson: a JSON field, with the path inside it (may be empty)reference: a reference to a composite key, one column per key partjunction: the rows of a junction tablemapped: aModelsMappedfilled on read from the table of its model, see MappedSourceextra: an unknown field kept in the extra JSON columnunknown: an unknown field and no extra column