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