Files
DarkflameServer/migrations/dlu/mysql/45_player_stats_daily.sql
Aaron Kimbrell 2d1ef0e370 feat: web dashboard and playground work
The NexusDashboard-parity dashboard (dDashboardServer) and everything built on it on the experimental branch:
accounts, characters, properties and moderation tools, permissions shared with in-game slash commands, economy
reports, World 3D and property 3D views with client scenery, scheduled events (features, vanity changes, live
events, announcements, restarts), vanity files and events, the CDClient browser, the message inspector with saved
captures, chat filter tools, community challenges, live ops, the AI moderator helper, and the server-side changes
they need.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 09:33:10 -05:00

13 lines
653 B
SQL

/* Daily totals of the per-character statistics (StatisticID: smashables smashed, quickbuilds, missions, pets tamed,
times smashed, ...) summed over every player in a zone. gm = 1 for staff (GM 3+), so reports can leave them out.
The map event kinds in map_events_daily grow too: 4 = player death (lot = killer), 5 = coins a player dropped on
death, 6 = smashable smashed by a player, 7 = quickbuild completed. */
CREATE TABLE IF NOT EXISTS player_stats_daily (
day INT NOT NULL,
zone INT NOT NULL,
stat INT NOT NULL,
gm TINYINT NOT NULL DEFAULT 0,
amount BIGINT NOT NULL DEFAULT 0,
PRIMARY KEY (day, zone, stat, gm)
);