client.card.use.log.go 1.2 KB

123456789101112131415161718192021
  1. package shanghu
  2. import (
  3. "time"
  4. )
  5. type MerchantClientCardUseLog struct {
  6. ID int64 `gorm:"column:id;type:bigint(20);primary_key;AUTO_INCREMENT" json:"id"`
  7. MerchantCardID int64 `gorm:"column:merchant_card_id;type:bigint(20)" json:"merchant_card_id"` // 商户卡id
  8. MerchantOpenID int64 `gorm:"column:merchant_open_id;type:bigint(20)" json:"merchant_open_id"` // 核销人
  9. ClinetOpenID string `gorm:"column:clinet_open_id;type:varchar(255)" json:"clinet_open_id"` // Openid
  10. CreateBy int64 `gorm:"column:create_by;type:bigint(20)" json:"create_by"` // 创建者
  11. UpdateBy int64 `gorm:"column:update_by;type:bigint(20)" json:"update_by"` // 更新者
  12. CreatedAt time.Time `gorm:"column:created_at;type:datetime(3)" json:"created_at"` // 创建时间
  13. UpdatedAt time.Time `gorm:"column:updated_at;type:datetime(3)" json:"updated_at"` // 最后更新时间
  14. DeletedAt time.Time `gorm:"column:deleted_at;type:datetime(3)" json:"deleted_at"` // 删除时间
  15. }
  16. func (m *MerchantClientCardUseLog) TableName() string {
  17. return "merchant_client_card_use_log"
  18. }