aboutsummaryrefslogtreecommitdiff
path: root/backend/db/schemas.go
diff options
context:
space:
mode:
authorRyan Mehri <[email protected]>2020-05-10 17:00:46 -0600
committerRyan Mehri <[email protected]>2020-05-10 17:00:46 -0600
commitddbf4935b9b9adffa5f2939e56cb49cbd5139dd1 (patch)
tree1d80075cd661b978ebeb681043b3ad110cdbed7a /backend/db/schemas.go
parentMerge pull request #11 from jackyzha0/pass_and_expiry (diff)
downloadctrl-v-ddbf4935b9b9adffa5f2939e56cb49cbd5139dd1.tar.xz
ctrl-v-ddbf4935b9b9adffa5f2939e56cb49cbd5139dd1.zip
Update post to return hash and password
Diffstat (limited to 'backend/db/schemas.go')
-rw-r--r--backend/db/schemas.go11
1 files changed, 6 insertions, 5 deletions
diff --git a/backend/db/schemas.go b/backend/db/schemas.go
index 62c5a11..4c73f82 100644
--- a/backend/db/schemas.go
+++ b/backend/db/schemas.go
@@ -8,9 +8,10 @@ import (
// Paste represents a single paste
type Paste struct {
- ID bson.ObjectId `bson:"_id,omitempty"`
- Hash string
- Content string
- Expiry time.Time `bson:"expiry"`
- Title string
+ ID bson.ObjectId `bson:"_id,omitempty"`
+ Hash string
+ Content string
+ Expiry time.Time `bson:"expiry"`
+ Title string
+ Password string
}