entities

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2020 License: Apache-2.0 Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Computer

type Computer struct {
	ID                 uuid.UUID `gorm:"type:uuid;primary_key;"`
	Name               string
	ComputersLanguages []ComputersLanguages `gorm:"foreignkey:ComputerID;association_foreignkey:ID"`
}

type ComputersLanguages

type ComputersLanguages struct {
	ID         uuid.UUID `gorm:"type:uuid;primary_key;"`
	ComputerID uuid.UUID `sql:"type:uuid REFERENCES computers(id) ON DELETE CASCADE"`
	LanguageID uuid.UUID `sql:"type:uuid REFERENCES languages(id) ON DELETE CASCADE"`
	Language   Language  `gorm:"foreignkey:LanguageID;association_foreignkey:ID"`
	Computer   Computer  `gorm:"foreignkey:ComputerID;association_foreignkey:ID"`
}

type CreditCard

type CreditCard struct {
	ID     uuid.UUID `gorm:"type:uuid;primary_key;"`
	Name   string
	UserID uuid.UUID `sql:"type:uuid REFERENCES users(id) ON DELETE CASCADE"`
	User   User      `gorm:"foreignkey:UserID;association_foreignkey:ID"`
}

type Language

type Language struct {
	ID                 uuid.UUID `gorm:"type:uuid;primary_key;"`
	Name               string
	ComputersLanguages []ComputersLanguages `gorm:"foreignkey:ComputerID;association_foreignkey:ID"`
}

type Pet

type Pet struct {
	ID    uuid.UUID `gorm:"type:uuid;primary_key;"`
	Name  string
	ZooID uuid.UUID `sql:"type:uuid REFERENCES zoos(id) ON DELETE CASCADE"`
}

type Test

type Test struct {
	ID        uuid.UUID `json:"id" gorm:"primary_key; Column:id"`
	CreatedAt time.Time `json:"createdAt" gorm:"Column:createdAt"`
	UpdatedAt time.Time `json:"updatedAt" gorm:"Column:updatedAt"`
	Name      string    `json:"name" gorm:"Column:name"`
}

func (*Test) TableName

func (t *Test) TableName() string

func (*Test) ToBytes

func (t *Test) ToBytes() []byte

type User

type User struct {
	ID   uuid.UUID `gorm:"type:uuid;primary_key;"`
	Name string
}

type Zoo

type Zoo struct {
	ID   uuid.UUID `gorm:"type:uuid;primary_key;"`
	Pet  []Pet     `gorm:"foreignkey:ZooID;association_foreignkey:ID"`
	Name string
}

Jump to

Keyboard shortcuts

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