Files
opsx-licence/backend/internal/model/customer_product.go
T
Logan.LiandCursor 4c46088f4f feat: 客户关联产品并支持按产品圈选通知群体
新增客户-产品多对多关联,列表可按产品筛选并复制邮箱;发证/下单自动回填历史关联。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-12 21:58:35 +08:00

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"
}