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