monolayer-pg / schema / PgForeignKey
Class: PgForeignKey<T, C>
Type Parameters
Type Parameter |
---|
T extends string |
C extends AnyPgTable |
Methods
deleteRule()
deleteRule(
rule
):PgForeignKey
<T
,C
>
Parameters
Parameter | Type |
---|---|
rule | "cascade" | "set null" | "set default" | "restrict" | "no action" |
Returns
PgForeignKey
<T
, C
>
external()
external():
PgForeignKey
<T
,C
>
Returns
PgForeignKey
<T
, C
>
updateRule()
updateRule(
rule
):PgForeignKey
<T
,C
>
Parameters
Parameter | Type |
---|---|
rule | "cascade" | "set null" | "set default" | "restrict" | "no action" |
Returns
PgForeignKey
<T
, C
>