From 2a114dee6909e4b8dfc06a4e39cc0b97a9d3560b Mon Sep 17 00:00:00 2001 From: Pavel Date: Thu, 17 Oct 2019 12:00:33 +0300 Subject: [PATCH] [fix] changed ExternalID type to string --- core/models.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/models.go b/core/models.go index 641309c..c0951f4 100644 --- a/core/models.go +++ b/core/models.go @@ -31,7 +31,7 @@ type Account struct { // User model type User struct { ID int `gorm:"primary_key"` - ExternalID int `gorm:"column:external_id; not null; unique"` + ExternalID string `gorm:"column:external_id; type:varchar(255); not null; unique"` UserPhotoURL string `gorm:"column:user_photo_url; type:varchar(255)" binding:"max=255"` UserPhotoID string `gorm:"column:user_photo_id; type:varchar(100)" binding:"max=100"` CreatedAt time.Time