Changed LastChecked from uint to int64

Since the LastChecked record is storing unix timestamp, using `int64`
make it easier to work with `time` package.
This commit is contained in:
Cristian Ditaputratama 2024-10-31 22:40:38 +07:00
parent 30aa8d80dc
commit ec6f0a1893
Signed by: ditatompel
GPG key ID: 31D3D06D77950979

View file

@ -50,7 +50,7 @@ type Node struct {
Latitude float64 `json:"latitude" db:"lat"`
Longitude float64 `json:"longitude" db:"lon"`
DateEntered uint `json:"date_entered,omitempty" db:"date_entered"`
LastChecked uint `json:"last_checked" db:"last_checked"`
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"`
CORSCapable bool `json:"cors" db:"cors_capable"`