models

package
v0.0.0-...-b31642b Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2019 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 Label

type Label struct {
	gorm.Model
	Name        string `gorm:"type:varchar(64);not null"`
	Description string `gorm:"size:255"`
	Color       string
	Priority    uint `gorm:"not null"`
}

type Task

type Task struct {
	gorm.Model
	Name        string    `gorm:"not null"`
	Description string    `gorm:"size:255"`
	DueDate     time.Time `gorm:"not null"`
	Labels      []Label   `gorm:"many2many:task_labels"`
	Priority    float32   `gorm:"-"` // do not persist this field
}

Jump to

Keyboard shortcuts

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