player_letter.gen.go 1.4 KB

1234567891011121314151617181920212223242526272829303132
  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 TableNamePlayerLetter = "player_letter"
  9. // PlayerLetter mapped from table <player_letter>
  10. type PlayerLetter struct {
  11. ID int64 `gorm:"column:id;type:bigint(20);primaryKey;autoIncrement:true" json:"id"`
  12. PlayerID int64 `gorm:"column:playerId;type:bigint(20);index:IDX_player_letter_playerId,priority:1" json:"playerId"`
  13. Type int32 `gorm:"column:type;type:int(11)" json:"type"`
  14. ViewState int32 `gorm:"column:viewState;type:int(11)" json:"viewState"`
  15. DrawState int32 `gorm:"column:drawState;type:int(11)" json:"drawState"`
  16. Title string `gorm:"column:title;type:varchar(255)" json:"title"`
  17. Content string `gorm:"column:content;type:varchar(1024)" json:"content"`
  18. Extra string `gorm:"column:extra;type:text" json:"extra"`
  19. ExtraInfo string `gorm:"column:extraInfo;type:text" json:"extraInfo"`
  20. DisplayTime time.Time `gorm:"column:displayTime;type:datetime" json:"displayTime"`
  21. CreateTime time.Time `gorm:"column:create_time;type:datetime" json:"create_time"`
  22. ExpireTime time.Time `gorm:"column:expireTime;type:datetime" json:"expireTime"`
  23. }
  24. // TableName PlayerLetter's table name
  25. func (*PlayerLetter) TableName() string {
  26. return TableNamePlayerLetter
  27. }