database

package
v0.0.0-...-f25a240 Latest Latest
Warning

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

Go to latest
Published: May 16, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DBConnection

func DBConnection() *gorm.DB

DBConnection connect the database

Types

type BookStore

type BookStore struct {
	BookstoreID uint
	Location    string
	CreatedAt   time.Time
	UpdatedAt   time.Time
	DeletedAt   *time.Time
}

BookStore define

type BundleDetail

type BundleDetail struct {
	BundleID  uint
	BookID    int
	CreatedAt time.Time
	UpdatedAt time.Time
	DeletedAt *time.Time
}

BundleDetail define

type BundleMaster

type BundleMaster struct {
	ID         uint `gorm:"AUTO_INCREMENT"`
	BundleName string
	Note       string
	CreatedAt  time.Time
	UpdatedAt  time.Time
	DeletedAt  *time.Time
}

BundleMaster define

type Product

type Product struct {
	ID              uint
	ProductCategory string
	ProductName     string
	Price           string
	Good            bool
	LongTerm        bool
	Risk            bool
	Due             time.Time
	CreatedAt       time.Time
	UpdatedAt       time.Time
	DeletedAt       *time.Time
}

Product define

type Products

type Products []Product

Products is array of Product

type RecommendBook

type RecommendBook struct {
	RecommendID uint
	BookID      uint
	CreatedAt   time.Time
	UpdatedAt   time.Time
	DeletedAt   *time.Time
}

RecommendBook define

type RecommendBundle

type RecommendBundle struct {
	RecommendID uint
	BundleID    uint
	CreatedAt   time.Time
	UpdatedAt   time.Time
	DeletedAt   *time.Time
}

RecommendBundle define

type RecommendMaster

type RecommendMaster struct {
	ID            uint `gorm:"AUTO_INCREMENT"`
	RecommendName string
	BookstoreID   uint
	Capacity      uint
	DayLow        uint
	DayHigh       uint
	WeekLow       uint
	WeekHigh      uint
	MonthLow      uint
	MonthHigh     uint
	StackLow      uint
	StackHigh     uint
	StockLow      uint
	StockHigh     uint
	CreatedAt     time.Time
	UpdatedAt     time.Time
	DeletedAt     *time.Time
}

RecommendMaster define

type SalesStatus

type SalesStatus struct {
	ProductID   uint
	BookstoreID uint
	Day         uint
	Week        uint
	Month       uint
	CreatedAt   time.Time
	UpdatedAt   time.Time
	DeletedAt   *time.Time
}

SalesStatus define

type StoreStatus

type StoreStatus struct {
	ProductID   uint
	BookstoreID uint
	Stack       uint
	Stock       uint
	CreatedAt   time.Time
	UpdatedAt   time.Time
	DeletedAt   *time.Time
}

StoreStatus define

Jump to

Keyboard shortcuts

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