model

package
v0.0.0-...-e7feb91 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Album

type Album struct {
	ID              uuid.UUID `sql:"primary_key"`
	Title           string
	Duration        *int16
	Tracknum        *int16
	Release         *time.Time
	ImageURL        *string
	Source          string
	StreamingID     string
	Added           time.Time
	ImplicitlyAdded bool
}

type AlbumArtist

type AlbumArtist struct {
	AlbumID    uuid.UUID `sql:"primary_key"`
	ArtistID   uuid.UUID `sql:"primary_key"`
	Appearance bool
}

type Artist

type Artist struct {
	ID              uuid.UUID `sql:"primary_key"`
	Title           string
	ImplicitlyAdded bool
	ImageURL        *string
	StreamingID     *string
	Added           time.Time
}

type Playlist

type Playlist struct {
	ID          uuid.UUID `sql:"primary_key"`
	Title       string
	Added       time.Time
	Description *string
}

type PlaylistTrack

type PlaylistTrack struct {
	PlaylistID uuid.UUID `sql:"primary_key"`
	TrackID    uuid.UUID `sql:"primary_key"`
}

type Track

type Track struct {
	ID       uuid.UUID `sql:"primary_key"`
	Title    string
	Duration int16
	Tracknum int16
	AlbumID  uuid.UUID
	SourceID string
	Disc     int16
	Version  *string
}

type TrackArtist

type TrackArtist struct {
	ArtistID uuid.UUID `sql:"primary_key"`
	TrackID  uuid.UUID `sql:"primary_key"`
}

Jump to

Keyboard shortcuts

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