From 2a7347899c9577a2fe7d67286aa15c6326010a40 Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 5 May 2021 00:30:49 +0200 Subject: [PATCH] Add LastEdited attribute to profile for tracking user changes --- profile/profile.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/profile/profile.go b/profile/profile.go index 497f9d9f..ffd8d8e7 100644 --- a/profile/profile.go +++ b/profile/profile.go @@ -97,10 +97,15 @@ type Profile struct { //nolint:maligned // not worth the effort // an object) need to be concatenated for the settings database // path. Config map[string]interface{} + // ApproxLastUsed holds a UTC timestamp in seconds of // when this Profile was approximately last used. // For performance reasons not every single usage is saved. ApproxLastUsed int64 + // LastEdited hols the UTC timestamp in seconds when the profile was last + // edited by the user. This is not set automatically, but has to be manually + // set by the user interface. + LastEdited int64 // Created holds the UTC timestamp in seconds when the // profile has been created. Created int64