From ffecab72d8b50ff4cda2c6e3f662173a17c59bb7 Mon Sep 17 00:00:00 2001 From: withchao <993506633@qq.com> Date: Fri, 31 Mar 2023 09:45:15 +0800 Subject: [PATCH] user db model --- pkg/common/db/table/relation/user.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pkg/common/db/table/relation/user.go b/pkg/common/db/table/relation/user.go index bbfb483a3..7121b4e5f 100644 --- a/pkg/common/db/table/relation/user.go +++ b/pkg/common/db/table/relation/user.go @@ -10,14 +10,14 @@ const ( ) type UserModel struct { - UserID string `gorm:"column:user_id;primary_key;size:64"` - Nickname string `gorm:"column:name;size:255"` - FaceURL string `gorm:"column:face_url;size:255"` - Gender int32 `gorm:"column:gender"` - AreaCode string `gorm:"column:area_code;size:8" json:"areaCode"` - PhoneNumber string `gorm:"column:phone_number;size:32"` - Birth time.Time `gorm:"column:birth"` - Email string `gorm:"column:email;size:64"` + UserID string `gorm:"column:user_id;primary_key;size:64"` + Nickname string `gorm:"column:name;size:255"` + FaceURL string `gorm:"column:face_url;size:255"` + //Gender int32 `gorm:"column:gender"` + //AreaCode string `gorm:"column:area_code;size:8" json:"areaCode"` + //PhoneNumber string `gorm:"column:phone_number;size:32"` + //Birth time.Time `gorm:"column:birth"` + //Email string `gorm:"column:email;size:64"` Ex string `gorm:"column:ex;size:1024"` CreateTime time.Time `gorm:"column:create_time;index:create_time; autoCreateTime"` AppMangerLevel int32 `gorm:"column:app_manger_level;default:18"`