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 full)

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 declaration

Type declaration

type: "FOREIGN KEY"