aboutsummaryrefslogtreecommitdiff
path: root/db/schemas.go
blob: bad1e53bef8ba85d53a3fb3daa9c724cf93b8c8c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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