diff options
Diffstat (limited to 'backend/db/schemas.go')
| -rw-r--r-- | backend/db/schemas.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/backend/db/schemas.go b/backend/db/schemas.go new file mode 100644 index 0000000..bdfa60c --- /dev/null +++ b/backend/db/schemas.go @@ -0,0 +1,15 @@ +package db + +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"` +} |