✨ 新增几大中心功能
This commit is contained in:
18
server/model/app/app_user_profile.go
Normal file
18
server/model/app/app_user_profile.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package app
|
||||
|
||||
import "time"
|
||||
|
||||
type AppUserProfile struct {
|
||||
ID uint `json:"id" gorm:"primaryKey"`
|
||||
AppUserID uint `json:"appUserId" gorm:"uniqueIndex;not null"`
|
||||
WelcomePhrase string `json:"welcomePhrase" gorm:"type:varchar(255);comment:安全欢迎词"`
|
||||
NickName string `json:"nickName" gorm:"type:varchar(64)"`
|
||||
Avatar string `json:"avatar" gorm:"type:varchar(255)"`
|
||||
Channel string `json:"channel" gorm:"type:varchar(64)"`
|
||||
CreatedAt time.Time `json:"createdAt"`
|
||||
UpdatedAt time.Time `json:"updatedAt"`
|
||||
}
|
||||
|
||||
func (AppUserProfile) TableName() string {
|
||||
return "app_user_profiles"
|
||||
}
|
||||
Reference in New Issue
Block a user