26 lines
1.3 KiB
Go
26 lines
1.3 KiB
Go
package models
|
|
|
|
import "time"
|
|
|
|
// TenantCrmAttach 附件表: yz_tenant_crm_attach
|
|
// related_type: 1线索 / 2商机 / 3项目
|
|
type TenantCrmAttach 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"`
|
|
FileID *uint64 `orm:"column(file_id);null" json:"file_id"`
|
|
FileName string `orm:"column(file_name);size(255)" json:"file_name"`
|
|
FileURL string `orm:"column(file_url);size(500)" json:"file_url"`
|
|
FileSize int64 `orm:"column(file_size);default(0)" json:"file_size"`
|
|
UploaderID string `orm:"column(uploader_id);size(64)" json:"uploader_id"`
|
|
UploaderName string `orm:"column(uploader_name);size(128)" json:"uploader_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 *TenantCrmAttach) TableName() string {
|
|
return "yz_tenant_crm_attach"
|
|
}
|