Metakit / @doeixd/metakit/sql

RelationTable

interface · packages/metakit/src/sqlText.ts:27

interface RelationTable {
  readonly table: string
  readonly foreignKey: string | ReadonlyArray<string>
  readonly key?: string | ReadonlyArray<string>
}

Where the rows related to a row through a relation are: their table, the column of it that holds the id of the row they point at, and the column of the row's own table that id is (default id).

Members

RelationTable.table

property · packages/metakit/src/sqlText.ts:28

readonly table: string

RelationTable.foreignKey

property · packages/metakit/src/sqlText.ts:29

readonly foreignKey: string | ReadonlyArray<string>

RelationTable.key

property · packages/metakit/src/sqlText.ts:30

readonly key?: string | ReadonlyArray<string>