mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-18 06:54:15 +00:00
- 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
36 lines
520 B
JavaScript
Executable File
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,
|
|
},
|
|
},
|
|
}
|