package
Version:
v0.0.0-...-fddd541
Opens a new window with list of versions in this module.
Published: Dec 12, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Album struct {
gorm.Model
AlbumId string `gorm:"unique_index"`
Name string `gorm:"unique_index:idx_artist_id_name"`
ArtistId uint `gorm:"TYPE:integer REFERENCES artists;unique_index:idx_artist_id_name"`
Popularity int
AlbumType string
ReleaseDate time.Time
}
type Playlist struct {
gorm.Model
Service uint `gorm:"unique_index:idx_service_playlist_id"`
PlaylistId string `gorm:"unique_index:idx_service_playlist_id"`
Name string
Description string
TrackCount *uint
LastChanged *time.Time
}
type Release struct {
gorm.Model
AlbumId uint `gorm:"TYPE:integer REFERENCES albums"`
PlaylistId uint `gorm:"TYPE:integer REFERENCES playlists"`
SyncDate time.Time `gorm:"index"`
}
type Track struct {
gorm.Model
TrackId string `gorm:"unique_index:idx_playlist_track_id"`
PlaylistId uint `gorm:"TYPE:integer REFERENCES playlists;unique_index:idx_playlist_track_id"`
Name string
ArtistId uint `gorm:"TYPE:integer REFERENCES artists"`
AlbumId uint `gorm:"TYPE:integer REFERENCES albums"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.