Use int64 for DateEntered field

The `DateEntered` value expected to be a timestamp, so using int64
instead of uint make it easier to manipulate time.
This commit is contained in:
Christian Ditaputratama 2024-11-23 18:31:21 +07:00
parent 9b48c4731a
commit 84ad053413
No known key found for this signature in database
GPG key ID: 31D3D06D77950979

View file

@ -53,7 +53,7 @@ type Node struct {
City string `json:"city" db:"city"`
Latitude float64 `json:"latitude" db:"lat"`
Longitude float64 `json:"longitude" db:"lon"`
DateEntered uint `json:"date_entered,omitempty" db:"date_entered"`
DateEntered int64 `json:"date_entered,omitempty" db:"date_entered"`
LastChecked int64 `json:"last_checked" db:"last_checked"`
FailedCount uint `json:"failed_count,omitempty" db:"failed_count"`
LastCheckStatus types.JSONText `json:"last_check_statuses" db:"last_check_status"`