record registration ip and date in the server-side DB for usage analytics

This commit is contained in:
David Dworken
2022-04-09 16:37:51 -07:00
parent 1f15870a47
commit bf789605d1
2 changed files with 7 additions and 1 deletions

View File

@ -17,6 +17,12 @@ type EncHistoryEntry struct {
type Device struct {
UserId string `json:"user_id"`
DeviceId string `json:"device_id"`
// The IP address that was used to register the device. Recorded so
// that I can count how many people are using hishtory and roughly
// from where. If you would like this deleted, please email me at
// david@daviddworken.com and I can clear it from your device entries.
RegistrationIp string `json:"registration_ip"`
RegistrationDate time.Time `json:"registration_date"`
}
const (