feat: add minecraftStats to player model and update related API endpoints

This commit is contained in:
Lars Behrends
2025-12-29 09:27:06 +01:00
parent abebf8f7a2
commit 5fe6724663
4 changed files with 80 additions and 19 deletions

View File

@@ -23,6 +23,7 @@ const SEED_PLAYERS = [
isAdmin: 0,
tags: JSON.stringify(['#Bürger', '#Händler']),
stats: JSON.stringify({ playtimeHours: 482, level: 45, role: 'Bürger', organizationId: 'org-3' }),
minecraftStats: null,
inventory: JSON.stringify([]),
storyMarkdown: '# Der Bauplan von V\n\n> "Stein erinnert sich..."'
},
@@ -34,6 +35,7 @@ const SEED_PLAYERS = [
isAdmin: 1, // DrKButz is admin for testing
tags: JSON.stringify(['#Bauunternehmer']),
stats: JSON.stringify({ playtimeHours: 120, level: 12, role: 'Unternehmer', organizationId: 'org-4' }),
minecraftStats: null,
inventory: JSON.stringify([]),
storyMarkdown: '# Forschungslogbuch:\n\nSpezialisiert auf...'
}
@@ -117,6 +119,7 @@ function setupTables() {
isAdmin TINYINT DEFAULT 0,
tags JSON,
stats JSON,
minecraftStats JSON,
inventory JSON,
storyMarkdown TEXT,
discordId VARCHAR(255)