evaluation_rule.go 760 字节
package models

import (
	"gitlab.fjmaimaimai.com/allied-creation/performance/pkg/domain"
	"time"
)

type EvaluationRule struct {
	tableName struct{}       `pg:"evaluation_rule" comment:"评估规则"`
	Id        int64          `pg:"pk:id" comment:"ID"`
	Name      string         `comment:"名称"`
	Remark    string         `comment:"备注"`
	CompanyId int64          `comment:"公司ID"`
	CreatorId int64          `comment:"创建人ID"`
	Type      int            `comment:"评估方式(0评级、1评分)"`
	Rating    *domain.Rating `comment:"评级"`
	Score     *domain.Score  `comment:"评分"`
	CreatedAt time.Time      `comment:"创建时间"`
	UpdatedAt time.Time      `comment:"更新时间"`
	DeletedAt *time.Time     `comment:"删除时间"`
}