orm

package
v0.0.0-...-6c6f946 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitDB

func InitDB(config *Config) *gorm.DB

Types

type Batches

type Batches struct {
	gorm.Model
	model.Batch
	Allocations []OrderLines `gorm:"many2many:allocations;"`
}

type Config

type Config struct {
	Debug       bool
	AutoMigrate bool
}

type OrderLines

type OrderLines struct {
	gorm.Model
	model.OrderLine
}

Jump to

Keyboard shortcuts

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