mirror of
https://github.com/retailcrm/mg-transport-core.git
synced 2024-11-25 06:36:03 +03:00
[fix] changed ExternalID type to string
This commit is contained in:
parent
caf46751fe
commit
2a114dee69
@ -31,7 +31,7 @@ type Account struct {
|
|||||||
// User model
|
// User model
|
||||||
type User struct {
|
type User struct {
|
||||||
ID int `gorm:"primary_key"`
|
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"`
|
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"`
|
UserPhotoID string `gorm:"column:user_photo_id; type:varchar(100)" binding:"max=100"`
|
||||||
CreatedAt time.Time
|
CreatedAt time.Time
|
||||||
|
Loading…
Reference in New Issue
Block a user