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 {
|
||||
name: "Track",
|
||||
collection: "tracks",
|
||||
schema: {
|
||||
source: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
title: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
album: {
|
||||
type: String,
|
||||
},
|
||||
artists: {
|
||||
type: Array,
|
||||
},
|
||||
metadata: {
|
||||
type: Object,
|
||||
},
|
||||
explicit: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
public: {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
},
|
||||
publish_date: {
|
||||
type: Date,
|
||||
},
|
||||
cover: {
|
||||
type: String,
|
||||
default: "https://storage.ragestudio.net/comty-static-assets/default_song.png"
|
||||
},
|
||||
publisher: {
|
||||
type: Object,
|
||||
required: true,
|
||||
},
|
||||
lyrics_enabled: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
}
|
||||
}
|
||||
name: "Track",
|
||||
collection: "tracks",
|
||||
schema: {
|
||||
source: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
title: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
album: {
|
||||
type: String,
|
||||
},
|
||||
artist: {
|
||||
type: String,
|
||||
},
|
||||
metadata: {
|
||||
type: Object,
|
||||
},
|
||||
explicit: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
public: {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
},
|
||||
publish_date: {
|
||||
type: Date,
|
||||
},
|
||||
cover: {
|
||||
type: String,
|
||||
default:
|
||||
"https://storage.ragestudio.net/comty-static-assets/default_song.png",
|
||||
},
|
||||
publisher: {
|
||||
type: Object,
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user