redeem_peripherals_received.gen.go 1.1 KB

123456789101112131415161718192021
  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. const TableNameRedeemPeripheralsReceived = "redeem_peripherals_received"
  6. // RedeemPeripheralsReceived mapped from table <redeem_peripherals_received>
  7. type RedeemPeripheralsReceived struct {
  8. ID int64 `gorm:"column:id;type:bigint(20);primaryKey;autoIncrement:true" json:"id"`
  9. Sn string `gorm:"column:sn;type:varchar(128);not null;index:sn,priority:1" json:"sn"`
  10. Cid int64 `gorm:"column:cid;type:bigint(20);not null" json:"cid"` // 兑换码ID
  11. Openid string `gorm:"column:openid;type:varchar(32);not null;index:sn,priority:2;index:openid,priority:1" json:"openid"` // openid
  12. CreatedAt int64 `gorm:"column:created_at;type:bigint(20);not null" json:"created_at"` // 领取时间
  13. }
  14. // TableName RedeemPeripheralsReceived's table name
  15. func (*RedeemPeripheralsReceived) TableName() string {
  16. return TableNameRedeemPeripheralsReceived
  17. }