overridereferences

package
v0.0.0-...-b8add86 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Code generated by badaas-cli v0.0.0, DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Brand

type Brand struct {
	model.UUIDModel

	Name string `gorm:"unique;type:VARCHAR(255)"`
}

type Phone

type Phone struct {
	model.UUIDModel

	// Bicycle BelongsTo Person (Bicycle 0..* -> 1 Person)
	Brand     Brand `gorm:"references:Name;foreignKey:BrandName"`
	BrandName string
}

func (Phone) GetBrand

func (m Phone) GetBrand() (*Brand, error)

Jump to

Keyboard shortcuts

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