task.go 791 字节
package models

import (
	"time"

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

// 任务
type Task struct {
	tableName struct{}           `comment:"任务" pg:"task"`
	Id        int                `pg:"id,pk"`
	CreatedAt time.Time          `pg:"created_at"`
	UpdatedAt time.Time          `pg:"updated_at"`
	DeletedAt time.Time          `pg:"deleted_at"`
	Name      string             `pg:"name"`       // 任务名称
	Leader    domain.TaskLeader  `pg:"leader"`     // 任务负责人
	Status    int                `pg:"status"`     // 任务的状态
	StageList []domain.TaskStage `pg:"stage_list"` // 里程碑
	Level     int                `pg:"level"`      // 优先级,值越小优先级越高
	LevalName string             `pg:"leval_name"` // 优先级名称
}