models

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBMigrationData

type DBMigrationData struct {
	Name string
	File string
	SQL  string
}

DBMigrationData represents the name of a migration file and the SQL we need to run.

type DBMigrationEvent

type DBMigrationEvent struct {
	ID      int    `json:"id"`
	Name    string `json:"name"`
	File    string `json:"file"`
	Created string `json:"created"`
}

DBMigrationEvent represents a migration event that has happened that we will store in the database, so we can check on the next deployment if we need to run migrations.

Jump to

Keyboard shortcuts

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