merchant_package.go 785 B

1234567891011121314151617181920
  1. package merchant
  2. import (
  3. "time"
  4. )
  5. // MerchantPackage 商户套餐信息结构体
  6. type MerchantPackage struct {
  7. ID int `gorm:"column:id;primary_key;autoIncrement;comment:主键"`
  8. ReportSourceIds string `gorm:"column:report_source_ids;type:varchar(255);comment:报告来源"`
  9. VideoSourceIds string `gorm:"column:video_source_ids;type:varchar(255);comment:视频来源"`
  10. AudioSourceIds string `gorm:"column:audio_source_ids;type:varchar(255);comment:音频来源"`
  11. CreatedTime time.Time `gorm:"column:created_time;type:datetime;comment:创建时间"`
  12. UpdatedTime time.Time `gorm:"column:updated_time;type:datetime;comment:更新时间"`
  13. }
  14. // TableName 指定表名
  15. func (MerchantPackage) TableName() string {
  16. return "merchant_packages"
  17. }