orders_sync.gen.go 1.4 KB

123456789101112131415161718192021222324252627
  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 TableNameOrdersSync = "orders_sync"
  9. // OrdersSync mapped from table <orders_sync>
  10. type OrdersSync struct {
  11. ID int64 `gorm:"column:id;type:bigint(20);primaryKey;autoIncrement:true" json:"id"`
  12. Platform int32 `gorm:"column:platform;type:smallint(6);not null" json:"platform"` // 订单平台(1:安卓,2:苹果)
  13. ServerID int32 `gorm:"column:server_id;type:int(11);not null;index:server_id,priority:1;default:1" json:"server_id"` // 服务器ID
  14. LastID int64 `gorm:"column:last_id;type:bigint(20);not null" json:"last_id"` // 最后同步ID
  15. LastCreateTime time.Time `gorm:"column:last_create_time;type:datetime;not null" json:"last_create_time"` // 最后同步订单的创建时间
  16. UpdatedAt time.Time `gorm:"column:updated_at;type:datetime;not null" json:"updated_at"` // 更新时间
  17. OrderWay int32 `gorm:"column:order_way;type:int(11);not null;default:1" json:"order_way"` // 1 游戏内订单 2游戏外订单
  18. }
  19. // TableName OrdersSync's table name
  20. func (*OrdersSync) TableName() string {
  21. return TableNameOrdersSync
  22. }