cooperation_contract.go 1.9 KB
package models

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

type CooperationContract struct {
	tableName string `comment:"共创项目合约实体" pg:"cooperation_contracts,alias:cooperation_contract"`
	// 共创合约ID
	CooperationContractId int64 `comment:"共创合约ID" pg:",pk"`
	// 共创合约描述
	CooperationContractDescription string `comment:"共创合约描述"`
	// 共创合约名称
	CooperationContractName string `comment:"共创合约名称"`
	// 共创合约编号
	CooperationContractNumber string `comment:"共创合约编号"`
	// 共创项目编号
	CooperationProjectNumber string `comment:"共创项目编号"`
	// 共创合约承接对象,1员工,2共创用户,3公开
	CooperationContractUndertakerTypes []int32 `comment:"共创合约承接对象,1员工,2共创用户,3公开" pg:",array"`
	// 共创合约发起人
	CooperationContractSponsor *domain.User `comment:"共创合约发起人"`
	// 共创模式编号
	CooperationModeNumber string `comment:"共创模式编号"`
	// 合约状态,1正常,2暂停
	Status int32 `comment:"合约状态,1正常,2暂停"`
	// 数据所属组织机构
	Org *domain.Org `comment:"数据所属组织机构"`
	// 激励方式,1业绩分红激励,2金额激励
	IncentivesType int32 `comment:"激励方式"`
	// 公司
	Company *domain.Company `comment:"公司"`
	// 共创合约发起部门
	Department *domain.Department `comment:"共创合约发起部门"`
	// 操作人
	Operator *domain.User `comment:"操作人"`
	// 操作时间
	OperateTime time.Time `comment:"操作时间"`
	// 创建时间
	CreatedAt time.Time `comment:"创建时间"`
	// 删除时间
	DeletedAt time.Time `comment:"删除时间" pg:",soft_delete"`
	// 更新时间
	UpdatedAt time.Time `comment:"更新时间"`
	// 共创项目编号
	CooperationProjectId int64 `comment:"共创项目编号"`
}