diff options
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 |