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 Expense

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

func (*Expense) Migrate

func (m *Expense) Migrate() error

Create mongo collection

type Invoice

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

func (*Invoice) Migrate

func (m *Invoice) Migrate() error

Create mongo collection

type Migrator

type Migrator interface {
	Migrate() error
}

Jump to

Keyboard shortcuts

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