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 { export class GenreDto {
_id: string; _id: string;
name: string; name: string;
showIDs: string[]; image: string;
} }

View file

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

View file

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