task_record.go 1.3 KB
package models

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

// 任务阶段
type TaskRecord struct {
	tableName      struct{}            `comment:"评估项目" pg:"task_record"`
	Id             int                 `comment:"ID" pg:"pk:id"`
	CompanyId      int                 `comment:"公司ID"`
	StaffAssessId  int                 `comment:"每日评估的ID"`
	TaskId         int                 `comment:"任务ID"`
	TaskCategory   string              `comment:"任务类别"`
	TaskName       string              `comment:"任务名称"`
	TaskAlias      string              `comment:"任务别名"`
	TaskLeader     domain.TaskLeader   `comment:"任务负责人"`
	AssistLevel    int                 `comment:"上级辅导情况" pg:",use_zero"`
	AssistContent  string              `comment:"上级辅导内容"`
	RemarkContent  []domain.RemarkText `comment:"填写反馈进度"`
	AnomalyState   int                 `comment:"异常反馈状态" pg:",use_zero"`
	TaskStages     []domain.TaskStage  `comment:"里程碑列表"`
	TaskStageCheck domain.TaskStage    `comment:"提交的里程碑"`
	CreatedAt      time.Time           `comment:"创建时间"`
	UpdatedAt      time.Time           `comment:"更新时间"`
	DeletedAt      *time.Time          `comment:"删除时间"`
}