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 {
|
export class GenreDto {
|
||||||
_id: string;
|
_id: string;
|
||||||
name: string;
|
name: string;
|
||||||
showIDs: string[];
|
image: string;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
export class Genre {
|
export class Genre {
|
||||||
_id: string;
|
_id: string;
|
||||||
name: string;
|
name: string;
|
||||||
showIDs: string[];
|
image: string;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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 },
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue