initial commit

This commit is contained in:
Arnaud Delcasse
2025-10-08 09:09:53 +02:00
commit efccea3f64
16 changed files with 2780 additions and 0 deletions

View 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"`
}