Refactor playlist and trackLyrics schemas for consistency

- Rename playlist fields: list -> items, cover/thumbnail -> image
- Remove unused playlist fields: publisher, cover, thumbnail
- Replace sync_audio_at with video_starts_at in trackLyrics schema
- Minor formatting and cleanup
This commit is contained in:
SrGooglo 2025-06-16 20:53:50 +00:00
parent eb5c28d61e
commit f10808bc3a
2 changed files with 21 additions and 29 deletions

View File

@ -13,17 +13,12 @@ export default {
description: {
type: String,
},
list: {
items: {
type: Object,
default: [],
required: true,
},
cover: {
type: String,
default:
"https://storage.ragestudio.net/comty-static-assets/default_song.png",
},
thumbnail: {
image: {
type: String,
default:
"https://storage.ragestudio.net/comty-static-assets/default_song.png",
@ -32,9 +27,6 @@ export default {
type: Date,
required: true,
},
publisher: {
type: Object,
},
public: {
type: Boolean,
default: true,

View File

@ -4,17 +4,17 @@ export default {
schema: {
track_id: {
type: String,
required: true
required: true,
},
lrc: {
type: Object,
default: {}
default: {},
},
video_source: {
type: String,
},
sync_audio_at: {
video_starts_at: {
type: String,
}
}
},
},
}