Documentation
    Preparing search index...

    Interface AttributeToSqlOptions

    interface AttributeToSqlOptions {
        context?: "addColumn" | "changeColumn" | "createTable";
        tableOrModel?: TableOrModel;
        withoutForeignKeyConstraints?: boolean;
    }
    Index
    context?: "addColumn" | "changeColumn" | "createTable"

    Which query the generated SQL is destined for. Omitted when the attribute is not being generated as part of one, such as when renaming a column.

    tableOrModel?: TableOrModel

    The table the attribute belongs to. Used to qualify references and to name constraints.

    withoutForeignKeyConstraints?: boolean