model

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Project

type Project struct {
	ID    int64  `storm:"id,increment",json:"id"`
	Title string `storm:"index",json:"title"`
	UUID  string `storm:"unique",json:"uuid,omitempty"`
}

Project represent a collection of related tasks (tags of Habitica)

type Task

type Task struct {
	ID        int64  `storm:"id,increment",json:"id"`
	ProjectID int64  `storm:"index",json:"project_id"`
	UUID      string `storm:"unique",json:"uuid,omitempty"`
	Title     string `json:"text"`
	Details   string `json:"notes"`
	Completed bool   `storm:"index",json:"completed"`
	DueDate   int64  `storm:"index",json:"due_date,omitempty"`
}

Task represent a task - the building block of the TaskManager app

Jump to

Keyboard shortcuts

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