feat:完善项目管理,增加技术成果数据
This commit is contained in:
22
app/common/model/technology_achievement_visit.go
Normal file
22
app/common/model/technology_achievement_visit.go
Normal file
@ -0,0 +1,22 @@
|
||||
package model
|
||||
|
||||
import "time"
|
||||
|
||||
// TechnologyAchievementVisit 科技成果访问数据模型
|
||||
type TechnologyAchievementVisit struct {
|
||||
Model
|
||||
UID uint64 `gorm:"column:uid;type:int;default:0;comment:用户uuid" json:"-"`
|
||||
AchievementID uint64 `gorm:"column:achievement_id;index:idx_achievement_visit_achievement;type:int(11);default:0;comment:科技成果ID" json:"-"`
|
||||
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 *TechnologyAchievementVisit) TableName() string {
|
||||
return "technology_achievement_visit"
|
||||
}
|
||||
|
||||
func NewTechnologyAchievementVisit() *TechnologyAchievementVisit {
|
||||
return &TechnologyAchievementVisit{}
|
||||
}
|
Reference in New Issue
Block a user