Add reputation attribute to FalukantCharacter model and update related services and views

- Introduced a new 'reputation' attribute in the FalukantCharacter model with a default value and validation.
- Updated FalukantService to include 'reputation' in character attributes for API responses.
- Enhanced ReputationView component to display current reputation and load it from the API.
- Added translations for reputation in both German and English locales.
This commit is contained in:
Torsten Schulz (local)
2025-12-20 23:00:31 +01:00
parent f9ea4715d7
commit 6cf8fa8a9c
6 changed files with 125 additions and 5 deletions

View File

@@ -372,7 +372,7 @@ class FalukantService extends BaseService {
{ model: TitleOfNobility, as: 'nobleTitle', attributes: ['labelTr', 'id'] },
{ model: CharacterTrait, as: 'traits', attributes: ['id', 'tr'] }
],
attributes: ['id', 'birthdate', 'gender', 'moodId', 'health']
attributes: ['id', 'birthdate', 'gender', 'moodId', 'health', 'reputation']
},
{
model: UserHouse,
@@ -496,7 +496,7 @@ class FalukantService extends BaseService {
{
model: FalukantCharacter,
as: 'character',
attributes: ['birthdate', 'health'],
attributes: ['birthdate', 'health', 'reputation'],
include: [
{
model: Relationship,