feat(channelserver): add daily noon resets for gacha stepup and guild RP

Gacha stepup progress now resets when queried after the most recent
noon boundary, using a new created_at column on gacha_stepup.

Guild member rp_today rolls into rp_yesterday lazily when members are
enumerated after noon, using a new rp_reset_at column on guilds.

Both follow the established lazy-reset pattern from the cafe handler.
This commit is contained in:
Houmgaor
2026-02-21 00:50:55 +01:00
parent 7932d8ac06
commit f584c5a688
6 changed files with 89 additions and 4 deletions

View File

@@ -56,6 +56,7 @@ type Guild struct {
Souls uint32 `db:"souls"`
AllianceID uint32 `db:"alliance_id"`
Icon *GuildIcon `db:"icon"`
RPResetAt time.Time `db:"rp_reset_at"`
GuildLeader
}