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 Comment

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

func (*Comment) Migrate

func (m *Comment) Migrate() error

Create mongo collection

type Conversation

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

func (*Conversation) Migrate

func (m *Conversation) Migrate() error

Create mongo collection

type Message

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

func (*Message) Migrate

func (m *Message) Migrate() error

Create mongo collection

type Migrator

type Migrator interface {
	Migrate() error
}

type Notification

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

func (*Notification) Migrate

func (m *Notification) Migrate() error

Create mongo collection

type Reaction

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

func (*Reaction) Migrate

func (m *Reaction) Migrate() error

Create mongo collection

type Recipient

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

func (*Recipient) Migrate

func (m *Recipient) Migrate() error

Create mongo collection

type Share

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

func (*Share) Migrate

func (m *Share) Migrate() error

Create mongo collection

type Template

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

func (*Template) Migrate

func (m *Template) Migrate() error

Create mongo collection

Jump to

Keyboard shortcuts

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