Function: ref()
Function: ref()
Section titled “Function: ref()”ref<
C>(getter,options?):Column<InferColumnData<C>,true,false>
Defined in: core/src/schema/columns.ts:381
Foreign key reference to another column. The getter is invoked lazily so tables can be defined in any order without hoisting issues.
Type Parameters
Section titled “Type Parameters”C extends AnyColumn
Parameters
Section titled “Parameters”getter
Section titled “getter”() => C
options?
Section titled “options?”onDelete?
Section titled “onDelete?”Returns
Section titled “Returns”Column<InferColumnData<C>, true, false>