2022-04-15 14:24:30 +00:00
|
|
|
const models: SmartPlaylistModel[] = [
|
|
|
|
{
|
|
|
|
name: 'title',
|
|
|
|
type: 'text',
|
|
|
|
label: 'Title'
|
|
|
|
}, {
|
|
|
|
name: 'album.name',
|
|
|
|
type: 'text',
|
|
|
|
label: 'Album'
|
|
|
|
}, {
|
|
|
|
name: 'artist.name',
|
|
|
|
type: 'text',
|
|
|
|
label: 'Artist'
|
2022-09-23 06:21:29 +00:00
|
|
|
}, {
|
|
|
|
name: 'genre',
|
|
|
|
type: 'text',
|
|
|
|
label: 'Genre'
|
|
|
|
}, {
|
|
|
|
name: 'year',
|
|
|
|
type: 'number',
|
|
|
|
label: 'Year'
|
|
|
|
}, {
|
2022-04-15 14:24:30 +00:00
|
|
|
name: 'interactions.play_count',
|
|
|
|
type: 'number',
|
2022-12-05 21:49:46 +00:00
|
|
|
label: 'Play Count'
|
2022-04-15 14:24:30 +00:00
|
|
|
}, {
|
2022-11-08 17:38:28 +00:00
|
|
|
name: 'interactions.last_played_at',
|
2022-04-15 14:24:30 +00:00
|
|
|
type: 'date',
|
|
|
|
label: 'Last Played'
|
|
|
|
}, {
|
|
|
|
name: 'length',
|
|
|
|
type: 'number',
|
|
|
|
label: 'Length',
|
|
|
|
unit: 'seconds'
|
|
|
|
}, {
|
|
|
|
name: 'created_at',
|
|
|
|
type: 'date',
|
|
|
|
label: 'Date Added'
|
|
|
|
}, {
|
|
|
|
name: 'updated_at',
|
|
|
|
type: 'date',
|
|
|
|
label: 'Date Modified'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
|
|
|
|
export default models
|