aboutsummaryrefslogtreecommitdiff
path: root/backend/db/schemas.go
diff options
context:
space:
mode:
authorRyan Mehri <[email protected]>2020-05-09 21:17:40 -0600
committerGitHub <[email protected]>2020-05-09 21:17:40 -0600
commit14e120bc3fa4da442af0063c1a00852e67fbc6a2 (patch)
tree9258832576f9c1bcad6126cf76ef8f7f6a128e82 /backend/db/schemas.go
parentMerge pull request #3 from jackyzha0/doc-expiry (diff)
parentfolder refactor (diff)
downloadctrl-v-14e120bc3fa4da442af0063c1a00852e67fbc6a2.tar.xz
ctrl-v-14e120bc3fa4da442af0063c1a00852e67fbc6a2.zip
Merge pull request #4 from jackyzha0/folder-refactor
folder refactor
Diffstat (limited to 'backend/db/schemas.go')
-rw-r--r--backend/db/schemas.go15
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"`
+}