selfreferential

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 Employee

type Employee struct {
	model.UUIDModel

	Boss   *Employee `gorm:"constraint:OnDelete:SET NULL;"` // Self-Referential Has One (Employee 0..* -> 0..1 Employee)
	BossID *model.UUID
}

func (Employee) GetBoss

func (m Employee) GetBoss() (*Employee, error)

Jump to

Keyboard shortcuts

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