feat:增加专利模型数据
This commit is contained in:
19
app/common/model/user_patent.go
Normal file
19
app/common/model/user_patent.go
Normal file
@ -0,0 +1,19 @@
|
||||
package model
|
||||
|
||||
// UserPatent 用户专利信息数据模型
|
||||
type UserPatent struct {
|
||||
Model
|
||||
Local
|
||||
UID uint64 `gorm:"column:uid;type:int;default:0;comment:用户uuid" json:"-"`
|
||||
PatentID uint64 `gorm:"column:patent_id;type:int(11);default:0;comment:专利ID" json:"-"`
|
||||
ModelDeleted
|
||||
ModelAt
|
||||
}
|
||||
|
||||
func (m *UserPatent) TableName() string {
|
||||
return "user_patent"
|
||||
}
|
||||
|
||||
func NewUserPatent() *UserPatent {
|
||||
return &UserPatent{}
|
||||
}
|
Reference in New Issue
Block a user