interface AddForeignKeyConstraintQueryOptions {
    deferrable?: Deferrable;
    fields: (string | BaseSqlExpression | { attribute?: string; name: string })[];
    name?: string;
    onDelete?: ReferentialAction;
    onUpdate?: ReferentialAction;
    references:
        | { field?: string; fields: string[]; table: TableOrModel }
        | { field: string; fields?: string[]; table: TableOrModel };
    type: "FOREIGN KEY";
}

Hierarchy (View Summary)

Properties

deferrable?: Deferrable
fields: (string | BaseSqlExpression | { attribute?: string; name: string })[]
name?: string
references:
    | { field?: string; fields: string[]; table: TableOrModel }
    | { field: string; fields?: string[]; table: TableOrModel }
type: "FOREIGN KEY"