package model

import "matrix-middle-service/pkg/utils/time"

type LocationRecord struct {
	Id           string    `xorm:"NOT NULL VARCHAR(255) pk" json:"id"`
	CallbackTime time.Time `xorm:"DATETIME" json:"callbackTime"`
	LocationTime time.Time `xorm:"DATETIME" json:"locationTime"`
	LocationType int       `json:"locationType,omitempty"`
	Latitude     float64   `json:"latitude,omitempty"`
	Longitude    float64   `json:"longitude,omitempty"`
	Accuracy     float64   `json:"accuracy,omitempty"`
	Altitude     float64   `json:"altitude,omitempty"`
	Bearing      float64   `json:"bearing,omitempty"`
	Speed        float64   `json:"speed,omitempty"`
	Country      string    `json:"country,omitempty"`
	Province     string    `json:"province,omitempty"`
	City         string    `json:"city,omitempty"`
	District     string    `json:"district,omitempty"`
	Street       string    `json:"street,omitempty"`
	StreetNumber string    `json:"streetNumber,omitempty"`
	CityCode     string    `json:"cityCode,omitempty"`
	AdCode       string    `json:"adCode,omitempty"`
	Address      string    `json:"address,omitempty"`
	Description  string    `json:"description,omitempty"`
}
