Enhance weather model and service logic; improve money history translation handling

- Added primary key to the Weather model for better data integrity.
- Updated FalukantService to include specific weather attributes in queries, enhancing data retrieval.
- Refactored money history view to utilize a dedicated translation method for improved localization handling.
This commit is contained in:
Torsten Schulz (local)
2025-12-02 14:05:25 +01:00
parent e57de7f983
commit 956418f5f3
3 changed files with 23 additions and 4 deletions

View File

@@ -9,13 +9,13 @@ Weather.init(
{
regionId: {
type: DataTypes.INTEGER,
primaryKey: true,
allowNull: false,
references: {
model: RegionData,
key: 'id',
schema: 'falukant_data'
},
unique: true // Jede Stadt hat nur ein Wetter
}
},
weatherTypeId: {
type: DataTypes.INTEGER,