mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 10:34:17 +00:00
Change artists array to artist string field in Track schema
This commit is contained in:
parent
71c201e351
commit
d990430449
@ -1,46 +1,43 @@
|
|||||||
export default {
|
export default {
|
||||||
name: "Track",
|
name: "Track",
|
||||||
collection: "tracks",
|
collection: "tracks",
|
||||||
schema: {
|
schema: {
|
||||||
source: {
|
source: {
|
||||||
type: String,
|
type: String,
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
title: {
|
title: {
|
||||||
type: String,
|
type: String,
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
album: {
|
album: {
|
||||||
type: String,
|
type: String,
|
||||||
},
|
},
|
||||||
artists: {
|
artist: {
|
||||||
type: Array,
|
type: String,
|
||||||
},
|
},
|
||||||
metadata: {
|
metadata: {
|
||||||
type: Object,
|
type: Object,
|
||||||
},
|
},
|
||||||
explicit: {
|
explicit: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false,
|
default: false,
|
||||||
},
|
},
|
||||||
public: {
|
public: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: true,
|
default: true,
|
||||||
},
|
},
|
||||||
publish_date: {
|
publish_date: {
|
||||||
type: Date,
|
type: Date,
|
||||||
},
|
},
|
||||||
cover: {
|
cover: {
|
||||||
type: String,
|
type: String,
|
||||||
default: "https://storage.ragestudio.net/comty-static-assets/default_song.png"
|
default:
|
||||||
},
|
"https://storage.ragestudio.net/comty-static-assets/default_song.png",
|
||||||
publisher: {
|
},
|
||||||
type: Object,
|
publisher: {
|
||||||
required: true,
|
type: Object,
|
||||||
},
|
required: true,
|
||||||
lyrics_enabled: {
|
},
|
||||||
type: Boolean,
|
},
|
||||||
default: false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user