// 自动生成模板ReadCount
package autocode

import (
	"github.com/flipped-aurora/gin-vue-admin/server/global"
)

// ReadCount 结构体
// 如果含有time.Time 请自行import time包
type ReadCount struct {
	global.GVA_MODEL
	ProblemId uint   `json:"problemId" form:"problemId" gorm:"column:problem_id;comment:问题id;type:bigint"`
	UserId    uint   `json:"userId" form:"userId" gorm:"column:user_id;comment:阅读人id;type:bigint"`
	UserName  string `json:"userName" form:"userName" gorm:"column:user_name;comment:阅读人用户名;type:varchar(255);"`
	Count     *int   `json:"count" form:"count" gorm:"default:1;column:count;comment:阅读次数;type:int"`
}

// TableName ReadCount 表名
func (ReadCount) TableName() string {
	return "read_count"
}
