Add LastEdited attribute to profile for tracking user changes

This commit is contained in:
Daniel 2021-05-05 00:30:49 +02:00
parent 65a70a8323
commit 2a7347899c

View file

@ -97,10 +97,15 @@ type Profile struct { //nolint:maligned // not worth the effort
// an object) need to be concatenated for the settings database // an object) need to be concatenated for the settings database
// path. // path.
Config map[string]interface{} Config map[string]interface{}
// ApproxLastUsed holds a UTC timestamp in seconds of // ApproxLastUsed holds a UTC timestamp in seconds of
// when this Profile was approximately last used. // when this Profile was approximately last used.
// For performance reasons not every single usage is saved. // For performance reasons not every single usage is saved.
ApproxLastUsed int64 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 // Created holds the UTC timestamp in seconds when the
// profile has been created. // profile has been created.
Created int64 Created int64