DB change

This commit is contained in:
Torsten Schulz
2024-09-12 18:01:24 +02:00
parent 97b23527b6
commit 8f683ea489

View File

@@ -27,7 +27,7 @@ const League = sequelize.define('League', {
type: DataTypes.INTEGER,
allowNull: false,
references: {
model: 'clubs',
model: Club,
key: 'id',
},
onDelete: 'CASCADE',