Genres: drop showIDs, add image

This commit is contained in:
Toast 2025-02-20 19:21:35 +01:00
parent fd4431c09c
commit d8a3227f57
3 changed files with 3 additions and 3 deletions

View file

@ -1,5 +1,5 @@
export class GenreDto {
_id: string;
name: string;
showIDs: string[];
image: string;
}

View file

@ -1,5 +1,5 @@
export class Genre {
_id: string;
name: string;
showIDs: string[];
image: string;
}

View file

@ -2,5 +2,5 @@ import { Schema } from 'mongoose';
export const GenreSchema = new Schema({
name: { type: String, required: true },
showIDs: [{ type: Schema.Types.ObjectId, ref: 'Show' }],
image: { type: String, required: true },
});