summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/labstack/echo/cookbook/twitter/model/user.go
blob: e063c89b0c73dd3ee23080d4f4f6b238d8f47957 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
package model

import "gopkg.in/mgo.v2/bson"

type (
	User struct {
		ID        bson.ObjectId `json:"id" bson:"_id,omitempty"`
		Email     string        `json:"email" bson:"email"`
		Password  string        `json:"password,omitempty" bson:"password"`
		Token     string        `json:"token,omitempty" bson:"-"`
		Followers []string      `json:"followers,omitempty" bson:"followers,omitempty"`
	}
)