[fix] changed ExternalID type to string

This commit is contained in:
Pavel 2019-10-17 12:00:33 +03:00
parent caf46751fe
commit 2a114dee69

View File

@ -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