init commit
This commit is contained in:
20
model/track.go
Normal file
20
model/track.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package model
|
||||
|
||||
// Track represents the tracks table
|
||||
type Track struct {
|
||||
Base
|
||||
Album Album
|
||||
AlbumID string
|
||||
Artist Artist
|
||||
ArtistID string
|
||||
Bitrate int
|
||||
Codec string
|
||||
DiscNumber int
|
||||
Duration int
|
||||
Title string
|
||||
TotalDiscs int
|
||||
TotalTracks int
|
||||
TrackNumber int
|
||||
Year int
|
||||
Path string `gorm:"not null;unique"`
|
||||
}
|
||||
Reference in New Issue
Block a user