mirror of
https://github.com/koel/koel
synced 2024-12-22 10:33:16 +00:00
55 lines
837 B
TypeScript
55 lines
837 B
TypeScript
const models: SmartPlaylistModel[] = [
|
|
{
|
|
name: 'title',
|
|
type: 'text',
|
|
label: 'Title',
|
|
},
|
|
{
|
|
name: 'album.name',
|
|
type: 'text',
|
|
label: 'Album',
|
|
},
|
|
{
|
|
name: 'artist.name',
|
|
type: 'text',
|
|
label: 'Artist',
|
|
},
|
|
{
|
|
name: 'genre',
|
|
type: 'text',
|
|
label: 'Genre',
|
|
},
|
|
{
|
|
name: 'year',
|
|
type: 'number',
|
|
label: 'Year',
|
|
},
|
|
{
|
|
name: 'interactions.play_count',
|
|
type: 'number',
|
|
label: 'Play Count',
|
|
},
|
|
{
|
|
name: 'interactions.last_played_at',
|
|
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
|