Bereinigen und Entfernen von nicht mehr benötigten TinyMCE-Dateien und -Plugins; Aktualisierung der Internationalisierung für Deutsch und Englisch in den Falukant- und Navigationsmodulen; Verbesserung der Statusleiste und Router-Implementierung.

This commit is contained in:
Torsten Schulz (local)
2025-08-21 16:10:21 +02:00
parent 53c748a074
commit 3eb7ae4e93
170 changed files with 3850 additions and 7924 deletions

View File

@@ -0,0 +1,62 @@
import { sequelize } from '../../utils/sequelize.js';
import { DataTypes } from 'sequelize';
const UserProgress = sequelize.define('UserProgress', {
id: {
type: DataTypes.INTEGER,
primaryKey: true,
autoIncrement: true
},
userId: {
type: DataTypes.STRING(255),
allowNull: false
},
campaignId: {
type: DataTypes.INTEGER,
allowNull: false
},
totalScore: {
type: DataTypes.INTEGER,
defaultValue: 0
},
totalStars: {
type: DataTypes.INTEGER,
defaultValue: 0
},
levelsCompleted: {
type: DataTypes.INTEGER,
defaultValue: 0
},
currentLevel: {
type: DataTypes.INTEGER,
defaultValue: 1
},
isCompleted: {
type: DataTypes.BOOLEAN,
defaultValue: false
},
lastPlayed: {
type: DataTypes.DATE,
defaultValue: DataTypes.NOW
},
createdAt: {
type: DataTypes.DATE,
defaultValue: DataTypes.NOW
},
updatedAt: {
type: DataTypes.DATE,
defaultValue: DataTypes.NOW
}
}, {
tableName: 'match3_user_progress',
schema: 'match3',
timestamps: true,
indexes: [
{
unique: true,
fields: ['userId', 'campaignId']
}
]
});
export default UserProgress;