globalletter.gen.go 1.1 KB

1234567891011121314151617181920212223242526272829
  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 TableNameGloballetter = "globalletter"
  9. // Globalletter mapped from table <globalletter>
  10. type Globalletter struct {
  11. ID int64 `gorm:"column:id;type:bigint(20);primaryKey;autoIncrement:true" json:"id"`
  12. Type int32 `gorm:"column:type;type:int(11)" json:"type"`
  13. MaxPlayerID int32 `gorm:"column:maxPlayerId;type:int(11)" json:"maxPlayerId"`
  14. Title string `gorm:"column:title;type:varchar(255)" json:"title"`
  15. Content string `gorm:"column:content;type:varchar(1024)" json:"content"`
  16. Extra string `gorm:"column:extra;type:text" json:"extra"`
  17. ExtraInfo string `gorm:"column:extraInfo;type:text" json:"extraInfo"`
  18. CreateTime time.Time `gorm:"column:create_time;type:datetime" json:"create_time"`
  19. ExpireTime time.Time `gorm:"column:expireTime;type:datetime" json:"expireTime"`
  20. }
  21. // TableName Globalletter's table name
  22. func (*Globalletter) TableName() string {
  23. return TableNameGloballetter
  24. }