新增客户-产品多对多关联,列表可按产品筛选并复制邮箱;发证/下单自动回填历史关联。 Co-authored-by: Cursor <cursoragent@cursor.com>
16 lines
470 B
Go
16 lines
470 B
Go
package model
|
|
|
|
import "time"
|
|
|
|
// CustomerProduct 客户与产品关联(用于按产品圈选通知群体) // Logan.Li
|
|
type CustomerProduct struct {
|
|
CustomerID uint `json:"customer_id" gorm:"primaryKey;autoIncrement:false"`
|
|
ProductID uint `json:"product_id" gorm:"primaryKey;autoIncrement:false"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
}
|
|
|
|
// TableName 指定表名 // Logan.Li
|
|
func (CustomerProduct) TableName() string {
|
|
return "customer_products"
|
|
}
|