1234567891011121314151617 |
- module.exports = {
- songId: { type: String, min: 11, max: 11, required: true, index: true },
- title: { type: String, required: true },
- artists: [{ type: String }],
- genres: [{ type: String }],
- duration: { type: Number, required: true },
- skipDuration: { type: Number, required: true },
- thumbnail: { type: String, required: true },
- likes: { type: Number, default: 0, required: true },
- dislikes: { type: Number, default: 0, required: true },
- explicit: { type: Boolean, default: false, required: true },
- requestedBy: { type: String, required: true },
- requestedAt: { type: Date, required: true },
- acceptedBy: { type: String, required: true },
- acceptedAt: { type: Date, default: Date.now, required: true },
- discogs: { type: Object }
- };
|