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:
zegkljan
2022-02-13 02:40:28 +01:00
parent 3615deb985
commit 7b4eb8d5d2
3 changed files with 54 additions and 13 deletions
+2
View File
@@ -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.