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