models

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomTime added in v0.0.5

type CustomTime struct {
	time.Time
}

func (CustomTime) MarshalJson added in v0.0.5

func (c CustomTime) MarshalJson() ([]byte, error)

func (*CustomTime) Scan added in v0.0.5

func (c *CustomTime) Scan(value interface{}) error

func (CustomTime) Value added in v0.0.5

func (c CustomTime) Value() (driver.Value, error)

type MigrationModel

type MigrationModel struct {
	Id           uint32 `gorm:"primaryKey"`
	Rank         int
	Type         string
	Version      string
	Description  string
	RegisteredOn CustomTime  `gorm:"type:datetime"`
	ExecutedOn   *CustomTime `gorm:"type:datetime"`
	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