ad_log.gen.go 943 B

12345678910111213141516171819202122232425262728
  1. // Code generated by gorm.io/gen. DO NOT EDIT.
  2. // Code generated by gorm.io/gen. DO NOT EDIT.
  3. // Code generated by gorm.io/gen. DO NOT EDIT.
  4. package model
  5. import (
  6. "time"
  7. )
  8. const TableNameAdLog = "ad_log"
  9. // AdLog mapped from table <ad_log>
  10. type AdLog struct {
  11. ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
  12. AdID int64 `gorm:"column:ad_id" json:"ad_id"`
  13. PlayerID int64 `gorm:"column:player_id" json:"player_id"`
  14. Status int64 `gorm:"column:status" json:"status"`
  15. Channel string `gorm:"column:channel;comment:wx;dy" json:"channel"` // wx;dy
  16. IsNew int64 `gorm:"column:is_new;not null;comment:0:否 1:是" json:"is_new"` // 0:否 1:是
  17. EventTime time.Time `gorm:"column:event_time" json:"event_time"`
  18. EventDay time.Time `gorm:"column:event_day" json:"event_day"`
  19. }
  20. // TableName AdLog's table name
  21. func (*AdLog) TableName() string {
  22. return TableNameAdLog
  23. }