models

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MigrationModel

type MigrationModel struct {
	Id           uint32 `gorm:"primaryKey"`
	Rank         int
	Type         string
	Version      string
	Description  string
	RegisteredOn time.Time
	ExecutedOn   *time.Time
	Checksum     string
	State        MigrationState
}

func (MigrationModel) TableName

func (v MigrationModel) TableName() string

type MigrationState

type MigrationState string
const (
	StateSuccess    MigrationState = "success"
	StateFailure    MigrationState = "failure"
	StateUndone     MigrationState = "undone"
	StateRegistered MigrationState = "registered"
	StateSkipped    MigrationState = "skipped"
	StateNotFound   MigrationState = "not found"
)

type VersionModel

type VersionModel struct {
	Version string
}

func (VersionModel) TableName

func (v VersionModel) TableName() string

Jump to

Keyboard shortcuts

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