Add character_name field and trigger for notifications in Falukant module

This commit is contained in:
Torsten Schulz (local)
2025-12-08 23:37:07 +01:00
parent 856f7d56bf
commit be218aabf7
2 changed files with 72 additions and 0 deletions

View File

@@ -10,6 +10,17 @@ Notification.init({
tr: {
type: DataTypes.STRING,
allowNull: false},
character_name: {
type: DataTypes.STRING,
allowNull: true,
field: 'character_name'
},
characterName: {
type: DataTypes.VIRTUAL,
get() {
return this.getDataValue('character_name') || null;
}
},
shown: {
type: DataTypes.BOOLEAN,
allowNull: false,