forked from dbroqua/MusicTopus
Correction de bugs : * Avoir un logo pour les pages d'erreurs #32 * Stocker localement les assets d'un album #37 Co-authored-by: dbroqua <contact@darkou.fr> Reviewed-on: https://git.darkou.fr/dbroqua/MusicTopus/pulls/43
37 lines
835 B
JavaScript
37 lines
835 B
JavaScript
import mongoose from "mongoose";
|
|
|
|
const { Schema } = mongoose;
|
|
|
|
const AlbumSchema = new mongoose.Schema(
|
|
{
|
|
User: {
|
|
type: Schema.Types.ObjectId,
|
|
ref: "Users",
|
|
},
|
|
discogsId: Number,
|
|
year: Number,
|
|
released: Date,
|
|
uri: String,
|
|
artists: Array,
|
|
artists_sort: String,
|
|
labels: Array,
|
|
series: Array,
|
|
companies: Array,
|
|
formats: Array,
|
|
title: String,
|
|
country: String,
|
|
notes: String,
|
|
identifiers: Array,
|
|
videos: Array,
|
|
genres: Array,
|
|
styles: Array,
|
|
tracklist: Array,
|
|
extraartists: Array,
|
|
images: Array,
|
|
thumb: String,
|
|
thumbType: String,
|
|
},
|
|
{ timestamps: true }
|
|
);
|
|
|
|
export default mongoose.model("Albums", AlbumSchema);
|