model

package
v0.0.0-...-476bcdb Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Status

type Status int
const (
	StatusPending Status = iota + 1
	StatusInProgress
	StatusDone
)

func (Status) IsValid

func (s Status) IsValid() bool

type ToDo

type ToDo struct {
	ID          int        `db:"id"`
	Name        string     `db:"name"`
	Description string     `db:"description"`
	Status      Status     `db:"status"`
	CreatedOn   time.Time  `db:"created_on"`
	UpdatedOn   *time.Time `db:"updated_on"`
	DeletedOn   *time.Time `db:"deleted_on"`
}

Jump to

Keyboard shortcuts

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