evaluation_project.go 1.6 KB
package models

import (
	"time"

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

type EvaluationProject struct {
	tableName    struct{}                   `comment:"评估项目" pg:"evaluation_project"`
	Id           int64                      `comment:"ID" pg:"pk:id"`
	Name         string                     `comment:"名称"`
	Describe     string                     `comment:"描述"`
	CompanyId    int64                      `comment:"公司ID"`
	CycleId      int64                      `comment:"周期ID"`
	CreatorId    int64                      `comment:"创建人ID"`
	State        int                        `comment:"状态(0待完成配置、1待启用、2启用、3停用)" pg:",use_zero"`
	SummaryState int                        `comment:"周期评估是否下发" pg:",use_zero"`
	HrBp         int                        `comment:"HR角色权限" pg:",use_zero"`
	Pmp          int                        `comment:"PM角色权限" pg:",use_zero"`
	PmpIds       []string                   `comment:"项目管理员ID"`
	Recipients   []string                   `comment:"被评估人ID"`
	PrincipalId  string                     `comment:"任务负责人ID"`
	Template     *domain.EvaluationTemplate `comment:"评估模板"`
	BeginTime    time.Time                  `comment:"项目起始时间"`
	EndTime      time.Time                  `comment:"项目截至时间  "`
	CreatedAt    time.Time                  `comment:"创建时间"`
	UpdatedAt    time.Time                  `comment:"更新时间"`
	DeletedAt    *time.Time                 `comment:"删除时间"`
}