cooperation_application.go 1.7 KB
package models

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

type CooperationApplication struct {
	tableName string `comment:"共创申请实体" pg:"cooperation_applications,alias:cooperation_application"`
	// 共创申请ID
	CooperationApplicationId int64 `comment:"共创申请ID" pg:",pk:cooperation_application_id"`
	// 共创申请人
	CooperationApplicationApplicant *domain.User `comment:"共创申请人"`
	// 共创申请描述附件
	CooperationApplicationAttachment []*domain.Attachment `comment:"共创申请描述附件"`
	// 共创申请描述
	CooperationApplicationDescription string `comment:"共创申请描述"`
	// 共创申请审核状态,1待审核,2已同意,3已拒绝
	CooperationApplicationStatus int32 `comment:"共创申请审核状态,1待审核,2已同意,3已拒绝"`
	// 共创申请审核人
	CooperationApplicationVerifier *domain.User `comment:"共创申请审核人"`
	// 共创申请审核描述
	CooperationApplicationVerifyDescription string `comment:"共创申请审核描述"`
	// 共创申请审核时间
	CooperationApplicationVerifyTime time.Time `comment:"共创申请审核时间"`
	// 共创申请时间
	CooperationApplyTime time.Time `comment:"共创申请时间"`
	// 共创项目编号
	CooperationProjectNumber string `comment:"共创项目编号"`
	// 数据所属组织机构
	Org *domain.Org `comment:"数据所属组织机构"`
	// 公司
	Company *domain.Company `comment:"公司"`
	// 创建时间
	CreatedAt time.Time `comment:"创建时间"`
	// 删除时间
	DeletedAt time.Time `comment:"删除时间" pg:",soft_delete"`
	// 更新时间
	UpdatedAt time.Time `comment:"更新时间"`
}