28 lines
1.4 KiB
Go
28 lines
1.4 KiB
Go
package models
|
|
|
|
import "time"
|
|
|
|
// TenantCrmEntityContact 联系人表: yz_tenant_crm_entity_contact
|
|
// related_type: 1线索 / 2商机 / 3项目
|
|
type TenantCrmEntityContact 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"`
|
|
ContactName string `orm:"column(contact_name);size(50)" json:"contact_name"`
|
|
Position string `orm:"column(position);size(50)" json:"position"`
|
|
Mobile string `orm:"column(mobile);size(20)" json:"mobile"`
|
|
Wechat string `orm:"column(wechat);size(64)" json:"wechat"`
|
|
QQ string `orm:"column(qq);size(20)" json:"qq"`
|
|
Email string `orm:"column(email);size(100)" json:"email"`
|
|
IsPrimary int8 `orm:"column(is_primary);default(0)" json:"is_primary"`
|
|
Remark string `orm:"column(remark);size(500)" json:"remark"`
|
|
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 *TenantCrmEntityContact) TableName() string {
|
|
return "yz_tenant_crm_entity_contact"
|
|
}
|