aboutsummaryrefslogtreecommitdiff
path: root/backend/db/schemas.go
blob: d3551fc5b26d72851a80c0645aeba1e74f04f9ff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
	Password string
	Salt     []byte
}