From 5c231b338b2e09332893c8a3b1d868bd80fab614 Mon Sep 17 00:00:00 2001 From: jjxu <428192774@qq.com> Date: Thu, 30 Mar 2023 15:46:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=94=AF=E4=B8=80=E7=B4=A2?= =?UTF-8?q?=E5=BC=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/model/user.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/model/user.go b/cmd/model/user.go index 90373b8..5c1b183 100644 --- a/cmd/model/user.go +++ b/cmd/model/user.go @@ -3,10 +3,10 @@ package model // User 用户模型 type User struct { Model - MgmtAccId int64 `gorm:"column:mgmt_acc_id;not null;uniqueIndex:mgmt_acc_mgmt_artist_tel_uid_tel_num;comment:账号id"` + MgmtAccId int64 `gorm:"column:mgmt_acc_id;not null;comment:账号id"` //;uniqueIndex:mgmt_acc_mgmt_artist_tel_uid_tel_num MgmtArtistId int64 `gorm:"column:mgmt_artist_id;not null;comment:艺术家id"` - MgmtArtistUid string `gorm:"column:mgmt_artist_uid;type:varchar(256);uniqueIndex:mgmt_acc_mgmt_artist_uid_tel_num;comment:艺术家uid"` - TelNum string `gorm:"column:tel_num;type:varchar(20);uniqueIndex:mgmt_acc_mgmt_artist_uid_tel_num;not null;电话号码"` + MgmtArtistUid string `gorm:"column:mgmt_artist_uid;type:varchar(256);comment:艺术家uid"` //;uniqueIndex:mgmt_acc_mgmt_artist_uid_tel_num + TelNum string `gorm:"column:tel_num;type:varchar(20);not null;电话号码"` //;uniqueIndex:mgmt_acc_mgmt_artist_uid_tel_num InviteCode string `gorm:"column:invited_code;type:varchar(16);default:'';comment:个人邀请码"` InvitedBy *Invite `gorm:"foreignKey:InvitedId"` //邀请者的相关信息 Account string `gorm:"column:account;varchar(191);comment:账号"`