model.go 509 Bytes
Newer Older
hujiebin's avatar
hujiebin committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
package promotion_m

import "git.hilo.cn/hilo-common/resource/mysql"

// 推广员
type PromotionAgent struct {
	mysql.Entity
	ManagerId mysql.ID
	AgentId   mysql.ID
}

// 邀请关系
type PromotionInvite struct {
	mysql.Entity
	ManagerId  mysql.ID
	AgentId    mysql.ID
	Invitee    mysql.ID
	Platform   string
	PlatformId string
	Reason     string
	InviteDate string
}

// 邀请关系日志
type PromotionInviteLog struct {
	mysql.Entity
	AgentId   mysql.ID
	Invitee   mysql.ID
	AddReduce mysql.AddReduce
}