mirror of
https://github.com/Cernobor/oko-server.git
synced 2025-02-24 08:27:17 +00:00
deadline of features
* features can have a deadline * features with non-null deadline < now are deleted upon request for data
This commit is contained in:
@@ -2,6 +2,7 @@ package models
|
||||
|
||||
import (
|
||||
"io"
|
||||
"time"
|
||||
|
||||
geojson "github.com/paulmach/go.geojson"
|
||||
)
|
||||
@@ -23,6 +24,7 @@ type Feature struct {
|
||||
ID FeatureID `json:"id"`
|
||||
OwnerID UserID `json:"owner_id"`
|
||||
Name string `json:"name"`
|
||||
Deadline *time.Time `json:"deadline,omitempty"`
|
||||
Properties map[string]interface{} `json:"properties"`
|
||||
Geometry geojson.Geometry `json:"geometry"`
|
||||
// PhotoIDs contains a list IDs of photos associated with the feature.
|
||||
|
||||
Reference in New Issue
Block a user