migrations

package
v0.0.0-...-0406d23 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoMigrate

func AutoMigrate() error

Types

type Balance

type Balance struct {
	Database *mongo.Database
	Model    *model.Balance
}

func (*Balance) Migrate

func (m *Balance) Migrate() error

Create mongo collection

type Benefit

type Benefit struct {
	Database *mongo.Database
	Model    *model.Benefit
}

func (*Benefit) Migrate

func (m *Benefit) Migrate() error

Create mongo collection

type Company

type Company struct {
	Database *mongo.Database
	Model    *model.Company
}

func (*Company) Migrate

func (m *Company) Migrate() error

Create mongo collection

type Contact

type Contact struct {
	Database *mongo.Database
	Model    *model.Contact
}

func (*Contact) Migrate

func (m *Contact) Migrate() error

Create mongo collection

type Coupon

type Coupon struct {
	Database *mongo.Database
	Model    *model.Coupon
}

func (*Coupon) Migrate

func (m *Coupon) Migrate() error

Create mongo collection

type Membership

type Membership struct {
	Database *mongo.Database
	Model    *model.Membership
}

func (*Membership) Migrate

func (m *Membership) Migrate() error

Create mongo collection

type Migrator

type Migrator interface {
	Migrate() error
}

type Order

type Order struct {
	Database *mongo.Database
	Model    *model.Order
}

func (*Order) Migrate

func (m *Order) Migrate() error

Create mongo collection

type Package

type Package struct {
	Database *mongo.Database
	Model    *model.Package
}

func (*Package) Migrate

func (m *Package) Migrate() error

Create mongo collection

type Product

type Product struct {
	Database *mongo.Database
	Model    *model.Product
}

func (*Product) Migrate

func (m *Product) Migrate() error

Create mongo collection

type Promotion

type Promotion struct {
	Database *mongo.Database
	Model    *model.Promotion
}

func (*Promotion) Migrate

func (m *Promotion) Migrate() error

Create mongo collection

type Quote

type Quote struct {
	Database *mongo.Database
	Model    *model.Quote
}

func (*Quote) Migrate

func (m *Quote) Migrate() error

Create mongo collection

type Reward

type Reward struct {
	Database *mongo.Database
	Model    *model.Reward
}

func (*Reward) Migrate

func (m *Reward) Migrate() error

Create mongo collection

type Tier

type Tier struct {
	Database *mongo.Database
	Model    *model.Tier
}

func (*Tier) Migrate

func (m *Tier) Migrate() error

Create mongo collection

type Variant

type Variant struct {
	Database *mongo.Database
	Model    *model.Voucher
}

func (*Variant) Migrate

func (m *Variant) Migrate() error

Create mongo collection

type Wishlist

type Wishlist struct {
	Database *mongo.Database
	Model    *model.Wishlist
}

func (*Wishlist) Migrate

func (m *Wishlist) Migrate() error

Create mongo collection

Jump to

Keyboard shortcuts

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