From 68e86c16b46c0bb27ffa8c610dc5c18ad1b43efc Mon Sep 17 00:00:00 2001 From: Mosen Date: Wed, 22 Jun 2016 19:25:00 +1000 Subject: [PATCH] Devices endpoint reports field `last_checkin` for each device. --- device/datastore.go | 1 + device/device.go | 1 + 2 files changed, 2 insertions(+) diff --git a/device/datastore.go b/device/datastore.go index 2f519251..a3bf0628 100644 --- a/device/datastore.go +++ b/device/datastore.go @@ -72,6 +72,7 @@ var ( serial_number, os_version, product_name, + last_checkin, dep_profile_status, model, workflow_uuid diff --git a/device/device.go b/device/device.go index a1bba6d5..b9e34e79 100644 --- a/device/device.go +++ b/device/device.go @@ -38,6 +38,7 @@ type Device struct { DEPProfilePushTime *time.Time `json:"dep_profile_push_time,omitempty" db:"dep_profile_push_time"` DEPProfileAssignedDate *time.Time `json:"dep_profile_assigned_date,omitempty" db:"dep_profile_assigned_date"` DEPProfileAssignedBy string `json:"dep_profile_assigned_by,omitempty" db:"dep_profile_assigned_by"` + LastCheckin *time.Time `json:"last_checkin" db:"last_checkin"` } // DEPProfileStatus is the status of the DEP Profile