leaderboardsgg / leaderboard-backend

The backend for Leaderboards.gg. Also holds public-facing APIs.
https://info.leaderboards.gg
GNU General Public License v3.0
12 stars 16 forks source link

Automatically Set `UpdatedAt` Fields #237

Closed TheTedder closed 2 months ago

TheTedder commented 3 months ago

Make it so that the UpdatedAt fields of various models automatically get set to the current time when any of the object's fields change. Read this article for some inspiration: https://learn.microsoft.com/en-us/ef/core/logging-events-diagnostics/events#example-timestamp-state-changes.