prorm API Reference
    Preparing search index...

    Interface ConstraintDescription

    Constraint description

    interface ConstraintDescription {
        name: string;
        type: "UNIQUE" | "PRIMARY KEY" | "FOREIGN KEY" | "CHECK" | "DEFAULT";
        fields?: string[];
        reference?: { table: string; fields: string[] };
    }
    Index
    name: string
    type: "UNIQUE" | "PRIMARY KEY" | "FOREIGN KEY" | "CHECK" | "DEFAULT"
    fields?: string[]
    reference?: { table: string; fields: string[] }