migrations

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMigrationsList

func GetMigrationsList(migr gorm.Migrator) []migrator

Types

type ModelGorm

type ModelGorm struct {
	CreatedAt time.Time `gorm:"not null;type:timestamp;default:current_timestamp"`
	UpdatedAt time.Time `gorm:"not null;type:timestamp;default:current_timestamp ON update current_timestamp"`
	ID        uint64    `gorm:"primarykey"`
}

type ModelGormSoftDelete

type ModelGormSoftDelete struct {
	DeletedAt *time.Time `gorm:"type:timestamp;"`
}

Jump to

Keyboard shortcuts

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