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