SrGooglo f10808bc3a 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
2025-06-16 20:53:50 +00:00

36 lines
520 B
JavaScript
Executable File

export default {
name: "Playlist",
collection: "playlists",
schema: {
user_id: {
type: String,
required: true,
},
title: {
type: String,
required: true,
},
description: {
type: String,
},
items: {
type: Object,
default: [],
required: true,
},
image: {
type: String,
default:
"https://storage.ragestudio.net/comty-static-assets/default_song.png",
},
created_at: {
type: Date,
required: true,
},
public: {
type: Boolean,
default: true,
},
},
}