Open
Description
sequelize-typescript should throw an error if it finds multiple foreign keys referencing the same model like:
@Table
export class FriendList extends Model<FriendList> {
@ForeignKey(() => User)
@Column
UserId: number;
@ForeignKey(() => User)
@Column
FriendId: number;
}
This should be because it cannot infer which is the actual foreignKey
and which one is the otherKey
.