Sfoglia il codice sorgente

refactor: add linking data to artist db schema

Kristian Vos 15 ore fa
parent
commit
576e070fc9
1 ha cambiato i file con 25 aggiunte e 0 eliminazioni
  1. 25 0
      backend/logic/db/schemas/artist.js

+ 25 - 0
backend/logic/db/schemas/artist.js

@@ -21,6 +21,31 @@ export default {
 	musicbrainzIdentifier: { type: String, required: true },
 	musicbrainzData: { type: Object, required: true },
 	comment: { type: String },
+	linkingData: {
+		recordingSort: { type: String, enum: ["title", "length"] },
+		recordingFilters: {
+			hideNullLength: { type: Boolean },
+			hidePartOf: { type: Boolean },
+			hideTrackArtistOnly: { type: Boolean }
+		},
+		youtubeVideosSort: { type: String, enum: ["title", "length"] },
+		youtubeVideoTitleChanges: {
+			artistDash: { type: Boolean },
+			parantheses: { type: Boolean },
+			brackets: { type: Boolean },
+			commonPhrases: { type: Boolean }
+		},
+		youtubeVideoFilters: {
+			teaser: { type: Boolean },
+			under45: { type: Boolean },
+			live: { type: Boolean },
+			tour: { type: Boolean },
+			noMusicCategory: { type: Boolean }
+		},
+		linkedVideos: {},
+		manualHideRecordingMap: {},
+		recordingLockedIds: [{ type: String }]
+	},
 	createdBy: { type: String, required: true },
 	createdAt: { type: Number, default: Date.now, required: true },
 	documentVersion: { type: Number, default: 1, required: true }