feat:优化项目信息
This commit is contained in:
18
app/common/model/user_company.go
Normal file
18
app/common/model/user_company.go
Normal file
@ -0,0 +1,18 @@
|
||||
package model
|
||||
|
||||
// UserCompany 用户公司数据模型
|
||||
type UserCompany struct {
|
||||
Model
|
||||
UID uint64 `gorm:"column:uid;type:int;default:0;comment:用户uuid" json:"-"`
|
||||
CompanyID uint64 `gorm:"column:company_id;type:int(11);default:0;comment:公司模型ID" json:"-"`
|
||||
ModelDeleted
|
||||
ModelAt
|
||||
}
|
||||
|
||||
func (m *UserCompany) TableName() string {
|
||||
return "user_company"
|
||||
}
|
||||
|
||||
func NewUserCompany() *UserCompany {
|
||||
return &UserCompany{}
|
||||
}
|
Reference in New Issue
Block a user