aboutsummaryrefslogtreecommitdiff
path: root/db/schemas.go
diff options
context:
space:
mode:
Diffstat (limited to 'db/schemas.go')
-rw-r--r--db/schemas.go9
1 files changed, 6 insertions, 3 deletions
diff --git a/db/schemas.go b/db/schemas.go
index bad1e53..bdfa60c 100644
--- a/db/schemas.go
+++ b/db/schemas.go
@@ -1,12 +1,15 @@
package db
-import "github.com/globalsign/mgo/bson"
+import (
+ "time"
+
+ "github.com/globalsign/mgo/bson"
+)
// Paste represents a single paste
type Paste struct {
ID bson.ObjectId `bson:"_id,omitempty"`
Hash string
Content string
+ Expiry time.Time `bson:"expiry"`
}
-
-// add timestamp and expiry later