interface GetConstraintSnippetQueryOptions {
    defaultValue?: unknown;
    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: ConstraintType;
    where?: WhereOptions<any>;
}

Properties

defaultValue?: unknown
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

where?: WhereOptions<any>