evaluation_cycle.go 949 字节
package models

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

type EvaluationCycle struct {
	tableName struct{}                    `pg:"evaluation_cycle" comment:"评估周期"`
	Id        int64                       `pg:"pk:id" comment:"周期ID"`
	Name      string                      `comment:"名称"`
	TimeStart *time.Time                  `comment:"起始时间"`
	TimeEnd   *time.Time                  `comment:"截至时间"`
	CompanyId int64                       `comment:"公司ID"`
	CreatorId int64                       `comment:"创建人ID"`
	KpiCycle  int                         `comment:"考核周期(0日、1周、2月)"`
	Template  []domain.EvaluationTemplate `comment:"周期使用模板"`
	CreatedAt time.Time                   `comment:"创建时间"`
	UpdatedAt time.Time                   `comment:"更新时间"`
	DeletedAt *time.Time                  `comment:"删除时间"`
}