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

View File

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