model

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pet

type Pet struct {
	gorm.Model

	MasterID uuid.UUID
	Name     string
}

Pet is the model for test

func GetDefaultPet

func GetDefaultPet() []Pet

GetDefaultData returns data to populate table

type User

type User struct {
	gorm.Model

	UUID       uuid.UUID
	Name       string
	Instrument string `gorm:"type:varchar(16)"`
	Age        uint
	Candies    int
	BirthDate  time.Time
	Fun        bool
	Money      float32
	Bitcoins   float64
	Toys       int64
	End        int
}

User is the model for test

func GetDefaultUser

func GetDefaultUser() []User

GetDefaultData returns data to populate table

Jump to

Keyboard shortcuts

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