models

package
v0.0.0-...-ec53876 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Garden

type Garden struct {
	ID        uint           `json:"id"`
	Name      string         `json:"name"`
	CreatedAt time.Time      `gorm:"autoCreateTime" json:"created_at"`
	UpdatedAt time.Time      `gorm:"autoUpdateTime" json:"updated_at"`
	DeletedAt gorm.DeletedAt `gorm:"index,->" json:"-"`
}

type GardenCollection

type GardenCollection []*Garden

type Plant

type Plant struct {
	ID         uint           `json:"id"`
	GardenId   uint           `json:"garden_id"`
	CommonName string         `json:"common_name"`
	Family     string         `json:"family"`
	PlantClass string         `json:"plant_class"`
	CreatedAt  time.Time      `gorm:"autoCreateTime" json:"created_at"`
	UpdatedAt  time.Time      `gorm:"autoUpdateTime" json:"updated_at"`
	DeletedAt  gorm.DeletedAt `gorm:"index,->" json:"-"`
}

func (*Plant) FullInformation

func (p *Plant) FullInformation() string

type PlantCollection

type PlantCollection []*Plant

Jump to

Keyboard shortcuts

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