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