From bc6947f41facc3ef62fe8f2611551f48a7e3788b Mon Sep 17 00:00:00 2001 From: jackyzha0 Date: Sat, 9 May 2020 12:47:39 -0700 Subject: working con to mongo --- db/schemas.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 db/schemas.go (limited to 'db/schemas.go') diff --git a/db/schemas.go b/db/schemas.go new file mode 100644 index 0000000..bad1e53 --- /dev/null +++ b/db/schemas.go @@ -0,0 +1,12 @@ +package db + +import "github.com/globalsign/mgo/bson" + +// Paste represents a single paste +type Paste struct { + ID bson.ObjectId `bson:"_id,omitempty"` + Hash string + Content string +} + +// add timestamp and expiry later -- cgit v1.2.3