feat: implement table assignment and distribution for tournament matches
All checks were successful
Deploy tt-tagebuch / deploy (push) Successful in 44s
All checks were successful
Deploy tt-tagebuch / deploy (push) Successful in 44s
This commit is contained in:
@@ -201,7 +201,7 @@ const Member = sequelize.define('Member', {
|
||||
}
|
||||
});
|
||||
|
||||
Member.belongsTo(Club, { as: 'club' });
|
||||
Club.hasMany(Member, { as: 'members' });
|
||||
Member.belongsTo(Club, { as: 'club', foreignKey: 'clubId', constraints: false });
|
||||
Club.hasMany(Member, { as: 'members', foreignKey: 'clubId', constraints: false });
|
||||
|
||||
export default Member;
|
||||
|
||||
@@ -59,6 +59,11 @@ const TournamentMatch = sequelize.define('TournamentMatch', {
|
||||
allowNull: false,
|
||||
defaultValue: false,
|
||||
},
|
||||
tableNumber: {
|
||||
type: DataTypes.INTEGER,
|
||||
allowNull: true,
|
||||
field: 'table_number',
|
||||
},
|
||||
result: {
|
||||
type: DataTypes.STRING,
|
||||
allowNull: true,
|
||||
|
||||
Reference in New Issue
Block a user