123456789101112131415161718192021 |
- // Code generated by gorm.io/gen. DO NOT EDIT.
- // Code generated by gorm.io/gen. DO NOT EDIT.
- // Code generated by gorm.io/gen. DO NOT EDIT.
- package model
- const TableNameRedeemPeripheralsReceived = "redeem_peripherals_received"
- // RedeemPeripheralsReceived mapped from table <redeem_peripherals_received>
- type RedeemPeripheralsReceived struct {
- ID int64 `gorm:"column:id;type:bigint(20);primaryKey;autoIncrement:true" json:"id"`
- Sn string `gorm:"column:sn;type:varchar(128);not null;index:sn,priority:1" json:"sn"`
- Cid int64 `gorm:"column:cid;type:bigint(20);not null" json:"cid"` // 兑换码ID
- Openid string `gorm:"column:openid;type:varchar(32);not null;index:sn,priority:2;index:openid,priority:1" json:"openid"` // openid
- CreatedAt int64 `gorm:"column:created_at;type:bigint(20);not null" json:"created_at"` // 领取时间
- }
- // TableName RedeemPeripheralsReceived's table name
- func (*RedeemPeripheralsReceived) TableName() string {
- return TableNameRedeemPeripheralsReceived
- }
|