models

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 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 Admin added in v0.2.0

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

	Username string `gorm:"index;unique"`
	Password string

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

type Lyrics

type Lyrics struct {
	Id       uint   `gorm:"primaryKey;autoIncrement"`
	PublicId string `gorm:"index;unique;not null"`

	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

type LyricsPart

type LyricsPart struct {
	LyricsId uint
	Lyrics   Lyrics
	Text     string
}

type LyricsRequest added in v0.2.0

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

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

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

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

func (*LyricsRequest) AfterCreate added in v0.2.0

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

type LyricsRequestPart added in v0.2.0

type LyricsRequestPart struct {
	LyricsRequestId uint
	LyricsRequest   LyricsRequest
	Text            string
}

type LyricsRequestSyncedPart added in v0.2.0

type LyricsRequestSyncedPart struct {
	LyricsRequestId uint
	LyricsRequest   LyricsRequest
	Time            string
	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