From cddf5399575f5075e257999f33a430610fb8d024 Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Mon, 23 Oct 2023 00:35:53 +0200 Subject: [PATCH] fixed the type of `Device.Developer` --- server/model/device.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/model/device.go b/server/model/device.go index 61291cb2..d47ddd18 100755 --- a/server/model/device.go +++ b/server/model/device.go @@ -14,7 +14,7 @@ type Device struct { Created null.Time `gorm:"column:created;type:timestamp;" json:"created"` LastAccess time.Time `gorm:"column:lastAccess;type:timestamp;default:'0000-00-00 00:00:00';" json:"last_access"` LastAPI string `gorm:"column:lastApi;type:text;size:16777215;" json:"last_api"` - Developer string `gorm:"column:developer;type:char;size:5;default:false;" json:"developer"` + Developer string `gorm:"column:developer;type:enum('true','false');default:'false';" json:"developer"` OsVersion string `gorm:"column:osVersion;type:text;size:16777215;" json:"os_version"` AppVersion string `gorm:"column:appVersion;type:text;size:16777215;" json:"app_version"` Counter int32 `gorm:"column:counter;type:int;default:0;" json:"counter"`