aboutsummaryrefslogtreecommitdiff
path: root/db/schemas.go
diff options
context:
space:
mode:
authorjackyzha0 <[email protected]>2020-05-09 12:47:39 -0700
committerjackyzha0 <[email protected]>2020-05-09 12:47:39 -0700
commitbc6947f41facc3ef62fe8f2611551f48a7e3788b (patch)
tree5b8820f3184e64be3d3ba58547028ec8f599a0d8 /db/schemas.go
parenthealthcheck + basic api (diff)
downloadctrl-v-bc6947f41facc3ef62fe8f2611551f48a7e3788b.tar.xz
ctrl-v-bc6947f41facc3ef62fe8f2611551f48a7e3788b.zip
working con to mongo
Diffstat (limited to 'db/schemas.go')
-rw-r--r--db/schemas.go12
1 files changed, 12 insertions, 0 deletions
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