diff options
| author | jackyzha0 <[email protected]> | 2020-05-09 12:47:39 -0700 |
|---|---|---|
| committer | jackyzha0 <[email protected]> | 2020-05-09 12:47:39 -0700 |
| commit | bc6947f41facc3ef62fe8f2611551f48a7e3788b (patch) | |
| tree | 5b8820f3184e64be3d3ba58547028ec8f599a0d8 /db/schemas.go | |
| parent | healthcheck + basic api (diff) | |
| download | ctrl-v-bc6947f41facc3ef62fe8f2611551f48a7e3788b.tar.xz ctrl-v-bc6947f41facc3ef62fe8f2611551f48a7e3788b.zip | |
working con to mongo
Diffstat (limited to 'db/schemas.go')
| -rw-r--r-- | db/schemas.go | 12 |
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 |