entity

package
v0.0.0-...-fd07f43 Latest Latest
Warning

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

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

type Beer struct {
	// required: true
	// example: 1
	ID int `json:"id" db:"beer_id"`

	// required: true
	// example: Golden
	Name string `json:"name" db:"name"`

	// required: true
	// example: Kross
	Brewery string `json:"brewery" db:"brewery"`

	// required: true
	// example: Chile
	Country string `json:"country" db:"country"`

	// required: true
	// example: 10.5
	Price float32 `json:"price" db:"price"`

	// required: true
	// example: EUR
	Currency  string     `json:"currency" db:"currency"`
	CreatedAt time.Time  `json:"-" db:"created_at"`
	UpdatedAt *time.Time `json:"-" db:"updated_at"`
}

Beer represents a beer record.

swagger:model

func (*Beer) TableName

func (b *Beer) TableName() string

TableName represents the table name

Jump to

Keyboard shortcuts

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