mirror of
https://github.com/koel/koel
synced 2024-12-20 09:33:23 +00:00
48 lines
852 B
TypeScript
48 lines
852 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: 'bit_rate',
|
||
|
// type: 'number',
|
||
|
// label: 'Bit Rate',
|
||
|
// unit: 'kbps'
|
||
|
// }, {
|
||
|
name: 'interactions.play_count',
|
||
|
type: 'number',
|
||
|
label: 'Plays'
|
||
|
}, {
|
||
|
name: 'interactions.updated_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
|