Files
yunzerwebsiteallinone/go/models/tenant_crm_follow.go
T

28 lines
1.6 KiB
Go

package models
import "time"
// TenantCrmFollow 回访/跟进记录表: yz_backend_crm_follow
// related_type: 1线索 / 2商机 / 3项目
type TenantCrmFollow struct {
ID uint64 `orm:"column(id);pk;auto" json:"id"`
TenantID string `orm:"column(tenant_id);size(64)" json:"tenant_id"`
RelatedType int8 `orm:"column(related_type)" json:"related_type"`
RelatedID uint64 `orm:"column(related_id)" json:"related_id"`
RelatedName string `orm:"column(related_name);size(100)" json:"related_name"`
Stage int8 `orm:"column(stage);default(1)" json:"stage"` // 创建阶段:1线索/2商机/3项目
FollowType string `orm:"column(follow_type);size(20);default(1)" json:"follow_type"` // 回访方式
FollowTime *time.Time `orm:"column(follow_time);type(datetime);null" json:"follow_time"`
Content string `orm:"column(content);type(text);null" json:"content"`
NextContactTime *time.Time `orm:"column(next_contact_time);type(datetime);null" json:"next_contact_time"`
OwnerUserID string `orm:"column(owner_user_id);size(64)" json:"owner_user_id"`
OwnerUserName string `orm:"column(owner_user_name);size(128)" json:"owner_user_name"`
CreateTime time.Time `orm:"column(create_time);auto_now_add;type(datetime)" json:"create_time"`
UpdateTime time.Time `orm:"column(update_time);auto_now;type(datetime)" json:"update_time"`
DeleteTime *time.Time `orm:"column(delete_time);type(datetime);null" json:"delete_time"`
}
func (m *TenantCrmFollow) TableName() string {
return "yz_backend_crm_follow"
}