feat(match3): Erweiterung der Match3-Admin-Funktionalitäten und -Modelle
- Implementierung neuer Endpunkte für die Verwaltung von Match3-Kampagnen, Levels, Objectives und Tile-Typen im Admin-Bereich. - Anpassung der Admin-Services zur Unterstützung von Benutzerberechtigungen und Fehlerbehandlung. - Einführung von neuen Modellen und Assoziationen für Match3-Levels und Tile-Typen in der Datenbank. - Verbesserung der Internationalisierung für Match3-spezifische Texte in Deutsch und Englisch. - Aktualisierung der Frontend-Routen und -Komponenten zur Verwaltung von Match3-Inhalten.
This commit is contained in:
@@ -107,6 +107,8 @@ import Match3Level from './match3/level.js';
|
||||
import Match3Objective from './match3/objective.js';
|
||||
import Match3UserProgress from './match3/userProgress.js';
|
||||
import Match3UserLevelProgress from './match3/userLevelProgress.js';
|
||||
import Match3TileType from './match3/tileType.js';
|
||||
import Match3LevelTileType from './match3/levelTileType.js';
|
||||
|
||||
export default function setupAssociations() {
|
||||
// RoomType 1:n Room
|
||||
@@ -841,4 +843,23 @@ export default function setupAssociations() {
|
||||
foreignKey: 'levelId',
|
||||
as: 'level'
|
||||
});
|
||||
|
||||
// Match3 Tile Type associations
|
||||
Match3Level.hasMany(Match3LevelTileType, {
|
||||
foreignKey: 'levelId',
|
||||
as: 'levelTileTypes'
|
||||
});
|
||||
Match3LevelTileType.belongsTo(Match3Level, {
|
||||
foreignKey: 'levelId',
|
||||
as: 'level'
|
||||
});
|
||||
|
||||
Match3TileType.hasMany(Match3LevelTileType, {
|
||||
foreignKey: 'tileTypeId',
|
||||
as: 'levelTileTypes'
|
||||
});
|
||||
Match3LevelTileType.belongsTo(Match3TileType, {
|
||||
foreignKey: 'tileTypeId',
|
||||
as: 'tileType'
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user