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 Application

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

func (*Application) Migrate

func (m *Application) Migrate() error

Create mongo collection

type Attendance

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

func (*Attendance) Migrate

func (m *Attendance) Migrate() error

Create mongo collection

type Job

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

func (*Job) Migrate

func (m *Job) Migrate() error

Create mongo collection

type Leave

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

func (*Leave) Migrate

func (m *Leave) Migrate() error

Create mongo collection

type Migrator

type Migrator interface {
	Migrate() error
}

type Organization

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

func (*Organization) Migrate

func (m *Organization) Migrate() error

Create mongo collection

type Resume

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

func (*Resume) Migrate

func (m *Resume) Migrate() error

Create mongo collection

Jump to

Keyboard shortcuts

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