channel.gen.go 1.0 KB

1234567891011121314151617181920212223242526
  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 TableNameChannel = "channel"
  9. // Channel mapped from table <channel>
  10. type Channel struct {
  11. ID int64 `gorm:"column:id;type:bigint(20) unsigned;primaryKey;autoIncrement:true" json:"id"`
  12. Type int32 `gorm:"column:type;type:int(11);index:type,priority:1;default:1" json:"type"` // 渠道类型
  13. ChannelID string `gorm:"column:channel_id;type:varchar(128);index:channel_id,priority:1;default:0" json:"channel_id"` // 渠道ID
  14. Name string `gorm:"column:name;type:varchar(128);not null" json:"name"` // 渠道名字
  15. UpdatedAt time.Time `gorm:"column:updated_at;type:datetime;not null" json:"updated_at"`
  16. CreatedAt time.Time `gorm:"column:created_at;type:datetime;not null" json:"created_at"`
  17. }
  18. // TableName Channel's table name
  19. func (*Channel) TableName() string {
  20. return TableNameChannel
  21. }