models

package
v0.0.0-...-d482384 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const ListStatusActive string = "ACTIVE"

Variables

This section is empty.

Functions

This section is empty.

Types

type Comment

type Comment struct {
	ID   int64  `json:"id"`
	Text string `json:"text"`

	TaskID int64 `json:"task_id"`

	UpdatedAt time.Time `json:"updated_at"`
	CreatedAt time.Time `json:"created_at"`
}

func NewComment

func NewComment(text string, taskID int64) (_ Comment)

type List

type List struct {
	ID       int64  `json:"id"`
	Name     string `json:"name"`
	Status   string `json:"status"`
	Position int16  `json:"position"`

	ProjectID int64 `json:"project_id"`

	UpdatedAt time.Time `json:"updated_at"`
	CreatedAt time.Time `json:"created_at"`
}

func NewList

func NewList(name, status string, position int16, projectID int64) List

type Project

type Project struct {
	ID          int64                   `json:"id"`
	Name        string                  `json:"name"`
	Description postgres.JsonNullString `json:"description"`

	UpdatedAt time.Time `json:"updated_at"`
	CreatedAt time.Time `json:"created_at"`
}

func NewProject

func NewProject(name, description string) (_ Project)

type Task

type Task struct {
	ID          int64                   `json:"id"`
	Name        string                  `json:"name"`
	Position    int16                   `json:"position"`
	Description postgres.JsonNullString `json:"description"`

	ListID int64 `json:"list_id"`

	UpdatedAt time.Time `json:"updated_at"`
	CreatedAt time.Time `json:"created_at"`
}

func NewTask

func NewTask(name, description string, position int16, listID int64) (_ Task)

Jump to

Keyboard shortcuts

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