chapter_sync.gen.go 1.3 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 TableNameChapterSync = "chapter_sync"
  9. // ChapterSync mapped from table <chapter_sync>
  10. type ChapterSync struct {
  11. ID int64 `gorm:"column:id;type:bigint(20);primaryKey;autoIncrement:true" json:"id"`
  12. ChapterID int64 `gorm:"column:chapter_id;type:bigint(20);not null" json:"chapter_id"` // 章节ID
  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. Difficulty int32 `gorm:"column:difficulty;type:int(11);not null" json:"difficulty"`
  18. }
  19. // TableName ChapterSync's table name
  20. func (*ChapterSync) TableName() string {
  21. return TableNameChapterSync
  22. }