Genres: drop showIDs, add image
This commit is contained in:
parent
fd4431c09c
commit
d8a3227f57
3 changed files with 3 additions and 3 deletions
|
|
@ -1,5 +1,5 @@
|
|||
export class GenreDto {
|
||||
_id: string;
|
||||
name: string;
|
||||
showIDs: string[];
|
||||
image: string;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
export class Genre {
|
||||
_id: string;
|
||||
name: string;
|
||||
showIDs: string[];
|
||||
image: string;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 },
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue