importcsv

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Models for loading CSV data - these can be generated

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImportCSV

func ImportCSV()

Types

type Country

type Country struct {
	gorm.Model
	Code       string
	Name       string
	Latitude   float64
	Longtitude float64
	Alias      string
}

ISO country (location) codes.

type Item

type Item struct {
	gorm.Model
	Type           int32
	CodeShare      string
	CodeOrg        string
	Description    string
	Quantity       int32
	Uom            UnitOfMeasure
	UomID          int
	Organisation   Organisation
	OrganisationID int
	Status         string
	Date           *time.Time
	Country        Country
	CountryID      int
}

type Organisation

type Organisation struct {
	gorm.Model
	Name string
}

type UnitOfMeasure

type UnitOfMeasure struct {
	gorm.Model
	Name string
}

Jump to

Keyboard shortcuts

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