money_incentives_rule.go 1.6 KB
package models

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

type MoneyIncentivesRule struct {
	tableName string `comment:"金额激励规则实体" pg:"money_incentives_rules,alias:money_incentives_rule"`
	// 金额激励规则ID
	MoneyIncentivesRuleId int64 `comment:"金额激励规则ID" pg:",pk"`
	// 关联的共创合约编号
	CooperationContractNumber string `comment:"关联的共创合约编号"`
	// 激励金额
	MoneyIncentivesAmount float64 `comment:"激励金额"`
	// 金额激励阶段,阶段返回时需要转换为中文数字
	MoneyIncentivesStage int32 `comment:"金额激励阶段,阶段返回时需要转换为中文数字"`
	// 金额激励阶段有效期结束
	MoneyIncentivesStageEnd time.Time `comment:"金额激励阶段有效期结束"`
	// 金额激励阶段有效期开始
	MoneyIncentivesStageStart time.Time `comment:"金额激励阶段有效期开始"`
	// 金额激励规则时间
	MoneyIncentivesTime time.Time `comment:"金额激励规则时间"`
	// 推荐人抽成比例
	ReferrerPercentage float64 `comment:"推荐人抽成比例"`
	// 业务员抽成比例
	SalesmanPercentage float64 `comment:"业务员抽成比例"`
	// 分红激励规则说明
	Remarks string `comment:"分红激励规则说明"`
	// 数据所属组织机构
	Org *domain.Org `comment:"数据所属组织机构"`
	// 公司
	Company *domain.Company `comment:"公司"`
	// 更新时间
	UpdatedAt time.Time `comment:"更新时间"`
	// 删除时间
	DeletedAt time.Time `comment:"删除时间" pg:",soft_delete"`
	// 创建时间
	CreatedAt time.Time `comment:"创建时间"`
}