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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoMigrate

func AutoMigrate() error

Types

type Currency

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

func (*Currency) Migrate

func (m *Currency) Migrate() error

Create mongo collection

type Global

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

func (*Global) Migrate

func (m *Global) Migrate() error

Create mongo collection

type Locale

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

func (*Locale) Migrate

func (m *Locale) Migrate() error

Create mongo collection

type Migrator

type Migrator interface {
	Migrate() error
}

type Place

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

func (*Place) Migrate

func (m *Place) Migrate() error

Create mongo collection

type Timezone

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

func (*Timezone) Migrate

func (m *Timezone) Migrate() error

Create mongo collection

type Webhook

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

func (*Webhook) Migrate

func (m *Webhook) Migrate() error

Jump to

Keyboard shortcuts

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