interface CreateTableQueryOptions {
    charset?: string;
    collate?: string;
    comment?: string;
    engine?: string;
    initialAutoIncrement?: number;
    rowFormat?: string;
    uniqueKeys?: {
        fields: string[];
    }[] | {
        [indexName: string]: {
            fields: string[];
        };
    };
}

Properties

charset?: string
collate?: string
comment?: string
engine?: string
initialAutoIncrement?: number
rowFormat?: string
uniqueKeys?: {
    fields: string[];
}[] | {
    [indexName: string]: {
        fields: string[];
    };
}

Used for compound unique keys.

Type declaration

  • [indexName: string]: {
        fields: string[];
    }
    • fields: string[]