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