feat:完善项目管理
This commit is contained in:
22
app/common/model/technology_demand_visit.go
Normal file
22
app/common/model/technology_demand_visit.go
Normal file
@ -0,0 +1,22 @@
|
||||
package model
|
||||
|
||||
import "time"
|
||||
|
||||
// TechnologyDemandVisit 技术需求访问数据模型
|
||||
type TechnologyDemandVisit struct {
|
||||
Model
|
||||
UID uint64 `gorm:"column:uid;type:int;default:0;comment:用户uuid" json:"-"`
|
||||
DemandID uint64 `gorm:"column:demand_id;index:idx_demand_visit_demand;type:int(11);default:0;comment:科技产品ID" json:"product_id"`
|
||||
Count int `gorm:"column:count;type:int(8);default:0;comment:浏览次数" json:"count"`
|
||||
Date time.Time `gorm:"column:date;type:datetime;not null;comment:浏览时间" json:"date"`
|
||||
ModelDeleted
|
||||
ModelAt
|
||||
}
|
||||
|
||||
func (m *TechnologyDemandVisit) TableName() string {
|
||||
return "technology_demand_visit"
|
||||
}
|
||||
|
||||
func NewTechnologyDemandVisit() *TechnologyDemandVisit {
|
||||
return &TechnologyDemandVisit{}
|
||||
}
|
Reference in New Issue
Block a user