MegaAntiCheat / client-backend

GNU General Public License v3.0
118 stars 25 forks source link

Add date_modified and date_created to PlayerRecord objects #111

Closed megascatterbomb closed 7 months ago

megascatterbomb commented 7 months ago

Title is self explanatory.

I also changed the implementation so PlayerRecord::Default is derived; the fields won't need to all be individually tagged with #[serde(default)] anymore (except for custom defaults). Also implemented a default for Verdict since that was missing.

date_modified and date_created will be set to the current time for every record that doesn't already have a date to ensure compatibility.