quintodrome/domain/media_file.go

23 lines
363 B
Go
Raw Normal View History

2016-03-02 05:07:24 -09:00
package domain
2016-02-26 23:35:01 -09:00
import (
"time"
)
type MediaFile struct {
2016-02-26 23:35:01 -09:00
Id string
Path string
Title string
Album string
Artist string
AlbumArtist string
2016-02-28 18:56:24 -09:00
AlbumId string `parent:"album"`
2016-02-26 23:35:01 -09:00
Compilation bool
CreatedAt time.Time
UpdatedAt time.Time
}
type MediaFileRepository interface {
BaseRepository
Put(m *MediaFile) error
}