domain

package
v0.0.0-...-ab84f95 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2021 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 Base

type Base struct {
	ID        uuid.UUID  `json:"id" gorm:"primary_key;unique;type:uuid;column:id;default:uuid_generate_v4()"`
	CreatedAt time.Time  `json:"-"`
	UpdatedAt time.Time  `json:"-"`
	DeletedAt *time.Time `json:"-" sql:"index"`
}

type Image

type Image struct {
	Base
	Path        string    `json:"path"`
	OrphanageID uuid.UUID `json:"orphanage_id"`
}

type Orphanage

type Orphanage struct {
	Base
	Name           string  `json:"name"`
	About          string  `json:"about"`
	Latitude       float64 `json:"latitude"`
	Longitude      float64 `json:"longitude"`
	Instructions   string  `json:"instructions"`
	OpenedHours    string  `json:"opened_hours"`
	OpenOnWeekends bool    `json:"open_on_weekends"`
	Images         []Image `json:"images,omitempty"`
}

Jump to

Keyboard shortcuts

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