changed_sync.gen.go 1.3 KB

1234567891011121314151617181920212223242526
  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 TableNameChangedSync = "changed_sync"
  9. // ChangedSync mapped from table <changed_sync>
  10. type ChangedSync struct {
  11. ID int64 `gorm:"column:id;type:bigint(20);primaryKey;autoIncrement:true" json:"id"`
  12. Type int64 `gorm:"column:type;type:bigint(20);not null" json:"type"` // 类型,1:累计统计钻石;2:累计统计金币;99:玩家统计
  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. LastSyncTime time.Time `gorm:"column:last_sync_time;type:datetime;not null" json:"last_sync_time"` // 最后同步时间
  16. UpdatedAt time.Time `gorm:"column:updated_at;type:datetime;not null" json:"updated_at"` // 更新时间
  17. }
  18. // TableName ChangedSync's table name
  19. func (*ChangedSync) TableName() string {
  20. return TableNameChangedSync
  21. }