19 lines
420 B
Go
19 lines
420 B
Go
package model
|
|
|
|
// UserPatent 用户专利信息数据模型
|
|
type UserPatent struct {
|
|
Model
|
|
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{}
|
|
}
|