overrideforeignkey

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 Bicycle

type Bicycle struct {
	model.UUIDModel

	// Bicycle BelongsTo Person (Bicycle 0..* -> 1 Person)
	Owner            Person `gorm:"foreignKey:OwnerSomethingID"`
	OwnerSomethingID string
}

func (Bicycle) GetOwner

func (m Bicycle) GetOwner() (*Person, error)

type Person

type Person struct {
	model.UUIDModel
}

Jump to

Keyboard shortcuts

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