models

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2025 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lyrics

type Lyrics struct {
	Id uint `gorm:"primaryKey;autoIncrement"`

	SongTitle  string `gorm:"index"`
	ArtistName string `gorm:"index"`
	AlbumTitle string `gorm:"index"`

	LyricsPlain  []string          `gorm:"-"`
	LyricsSynced map[string]string `gorm:"-"`

	CreatedAt time.Time `gorm:"index"`
	UpdatedAt time.Time `gorm:"index"`
}

func (*Lyrics) AfterCreate

func (l *Lyrics) AfterCreate(tx *gorm.DB) error

func (*Lyrics) AfterDelete

func (l *Lyrics) AfterDelete(tx *gorm.DB) error

func (*Lyrics) AfterFind

func (l *Lyrics) AfterFind(tx *gorm.DB) error

type LyricsPart

type LyricsPart struct {
	LyricsId uint
	Lyrics   Lyrics
	Text     string
}

type LyricsSyncedPart

type LyricsSyncedPart struct {
	LyricsId uint
	Lyrics   Lyrics
	Time     string
	Text     string
}

Jump to

Keyboard shortcuts

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