migrations

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Yes           string = "yes"
	No            string = "no"
	NotApplicable string = "n/a"
)

Variables

This section is empty.

Functions

func Ptr

func Ptr[T any](v T) *T

Types

type ArtForm

type ArtForm struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

type ArtPeriod

type ArtPeriod struct {
	ID          string `json:"id"`
	Name        string `json:"name"`
	Start       int    `json:"start"`
	End         int    `json:"end"`
	Description string `json:"description"`
}

type ArtType

type ArtType struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

type Artist

type Artist struct {
	Id     string `json:"id"`
	Name   string `json:"name"`
	Source struct {
		Artist     string `json:"artist"`
		BirthData  string `json:"birth_data"`
		Profession string `json:"profession"`
		School     string `json:"school"`
		URL        string `json:"url"`
	} `json:"source"`
	Slug               string     `json:"slug"`
	RelativePath       string     `json:"relativePath"`
	WgaRelativePath    string     `json:"wgaRelativePath"`
	WgaID              string     `json:"wgaId"`
	Meta               ArtistMeta `json:"meta"`
	PossibleInfluences any        `json:"possibleInfluences"`
	Bio                string     `json:"bio"`
	School             string     `json:"school"`
}

type ArtistMeta

type ArtistMeta struct {
	YearOfBirth          int    `json:"year_of_birth"`
	PlaceOfBirth         string `json:"place_of_birth"`
	YearOfDeath          int    `json:"year_of_death"`
	PlaceOfDeath         string `json:"place_of_death"`
	YearActiveStart      int    `json:"year_active_start"`
	YearActiveEnd        int    `json:"year_active_end"`
	ExactYearOfBirth     string `json:"exact_year_of_birth"`
	ExactYearOfDeath     string `json:"exact_year_of_death"`
	PlaceOfActivityStart string `json:"place_of_activity_start"`
	PlaceOfActivityEnd   string `json:"place_of_activity_end"`
	Normalized           string `json:"normalized"`
	ExactActiveStart     string `json:"exact_active_start"`
	ExactActiveEnd       string `json:"exact_active_end"`
	KnownPlaceOfBirth    string `json:"known_place_of_birth"`
	KnownPlaceOfDeath    string `json:"known_place_of_death"`
	Parsed               bool   `json:"parsed"`
}

type ArtworkStage0

type ArtworkStage0 struct {
	Author    string `json:"AUTHOR"`
	BORNDIED  string `json:"BORN-DIED"`
	Title     string `json:"TITLE"`
	Date      string `json:"DATE"`
	Technique string `json:"TECHNIQUE"`
	Location  string `json:"LOCATION"`
	URL       string `json:"URL"`
	Form      string `json:"FORM"`
	Type      string `json:"TYPE"`
	School    string `json:"SCHOOL"`
	Timeframe string `json:"TIMEFRAME"`
}

type ArtworkStage1

type ArtworkStage1 struct {
	Id        string            `json:"id"`
	AuthorId  string            `json:"author_id"`
	Title     string            `json:"title"`
	Src       ArtworkStage0     `json:"src"`
	FormId    string            `json:"form_id"`
	Type      string            `json:"type"`
	SchoolId  string            `json:"school_id"`
	Meta      ArtworkStage1Meta `json:"meta"`
	Comment   string            `json:"comment"`
	Technique string            `json:"technique"`
	Image     string            `json:"image"`
	TypeId    string            `json:"type_id"`
}

type ArtworkStage1Meta

type ArtworkStage1Meta struct {
	WgaId string `json:"wga_id"`
}

type Glossary

type Glossary struct {
	Id         string `db:"id" json:"id"`
	Expression string `db:"expression" json:"expression"`
	Definition string `db:"definition" json:"definition"`
}

type GuestbookRecord

type GuestbookRecord struct {
	Message  string `json:"message"`
	Name     string `json:"name"`
	Email    string `json:"email"`
	Location string `json:"location"`
	Created  string `json:"created"`
	Updated  string `json:"updated"`
}

type PublicString

type PublicString struct {
	Name    string `json:"name"`
	Content string `json:"content"`
}

type School

type School struct {
	Id   string `json:"id"`
	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

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