map_zone.gen.go 1.1 KB

12345678910111213141516171819202122232425262728
  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 TableNameMapZone = "map_zone"
  9. // MapZone mapped from table <map_zone>
  10. type MapZone struct {
  11. ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
  12. Zoneid int32 `gorm:"column:zoneid" json:"zoneid"` // 区域位置ID
  13. Zonename string `gorm:"column:zonename" json:"zonename"` // 区域名称
  14. X float64 `gorm:"column:x" json:"x"` // 区域所在地图位置的x坐标(相对坐标)
  15. Y float64 `gorm:"column:y" json:"y"` // 区域所在地图位置的y坐标(相对坐标)
  16. Mapid int64 `gorm:"column:mapid" json:"mapid"` // 所属地图id
  17. CreateAt time.Time `gorm:"->" json:"create_at" c:"-"` // 创建时间
  18. UpdateAt time.Time `gorm:"->" json:"update_at" c:"-"` // 更新时间
  19. }
  20. // TableName MapZone's table name
  21. func (*MapZone) TableName() string {
  22. return TableNameMapZone
  23. }