models

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2016 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Task

type Task struct {
	Id          bson.ObjectId `bson:"_id,omitempty" json:"id"`
	CreatedBy   string        `json:"createdby"`
	Name        string        `json:"name"`
	Description string        `json:"description"`
	CreatedOn   time.Time     `json:"createdon,omitempty"`
	Due         time.Time     `json:"due,omitempty"`
	Status      string        `json:"status,omitempty"`
	Tags        []string      `json:"tags,omitempty"`
}

type TaskNote

type TaskNote struct {
	Id          bson.ObjectId `bson:"_id,omitempty" json:"id"`
	TaskId      bson.ObjectId `json:"taskid"`
	Description string        `json:"description"`
	CreatedOn   time.Time     `json:"createdon,omitempty"`
}

type User

type User struct {
	Id           bson.ObjectId `bson:"_id,omitempty" json:"id"`
	FirstName    string        `json:"firstname"`
	LastName     string        `json:"lastname"`
	Email        string        `json:"email"`
	Password     string        `json:"password,omitempty"`
	HashPassword []byte        `json:"hashpassword,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL