API 参考
    正在准备搜索索引...

    Describes join table options.

    interface JoinTableOptions {
        database?: string;
        inverseJoinColumn?: JoinColumnOptions;
        joinColumn?: JoinColumnOptions;
        name?: string;
        schema?: string;
        synchronize?: boolean;
    }
    索引

    属性

    database?: string

    Database where join table will be created. Works only in some databases (like mysql and mssql).

    inverseJoinColumn?: JoinColumnOptions

    Second (inverse) column of the join table.

    joinColumn?: JoinColumnOptions

    First column of the join table.

    name?: string

    Name of the table that will be created to store values of the both tables (join table). By default is auto generated.

    schema?: string

    Schema where join table will be created. Works only in some databases (like postgres and mssql).

    synchronize?: boolean

    Indicates if schema synchronization is enabled or disabled junction table. If it will be set to false then schema sync will and migrations ignores junction table. By default schema synchronization is enabled.