initial commit
This commit is contained in:
19
data/types/saved_search.go
Normal file
19
data/types/saved_search.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package types
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/paulmach/orb/geojson"
|
||||
)
|
||||
|
||||
// SavedSearch represents a saved journey search
|
||||
type SavedSearch struct {
|
||||
ID string `json:"id" bson:"_id"`
|
||||
OwnerID string `json:"owner_id" bson:"owner_id"`
|
||||
Departure *geojson.Feature `json:"departure" bson:"departure"`
|
||||
Destination *geojson.Feature `json:"destination" bson:"destination"`
|
||||
DateTime time.Time `json:"datetime" bson:"datetime"`
|
||||
Data map[string]interface{} `json:"data" bson:"data"`
|
||||
CreatedAt time.Time `json:"created_at" bson:"created_at"`
|
||||
UpdatedAt time.Time `json:"updated_at" bson:"updated_at"`
|
||||
}
|
||||
Reference in New Issue
Block a user