MappedSource
Interface: MappedSource
Defined in: packages/sql/src/relational/mapping.ts:29
A ModelsMapped attribute the store fills on read: its model is planned by the same store and links to this table
through a reference (columns) or a link collection (junction)
Properties
link
link: {
columns:ColumnPlan[];kind:"columns"; } | {kind:"junction";table:TablePlan; }
Defined in: packages/sql/src/relational/mapping.ts:54
How a row of the mapped model links to this table: its reference columns, or the junction table of its link collection
mapping
mapping:
TableMapping
Defined in: packages/sql/src/relational/mapping.ts:41
The mapping of that table
relation
relation:
RelationPlan
Defined in: packages/sql/src/relational/mapping.ts:33
The map relation of this table
table
table:
TablePlan
Defined in: packages/sql/src/relational/mapping.ts:37
The table of the mapped model
types
types:
string[]
Defined in: packages/sql/src/relational/mapping.ts:45
The __type values of the mapped model and of its subclasses
untyped
untyped:
boolean
Defined in: packages/sql/src/relational/mapping.ts:49
The mapped model is the root of its table: its rows without __type are its own