From f90ef12490cf5ba5cdd622108772a2df350ebe6c Mon Sep 17 00:00:00 2001 From: Toast Date: Wed, 22 Jan 2025 17:48:14 +0100 Subject: [PATCH] Shows: fill in dto and entity --- src/shows/dto/show.dto.ts | 9 ++++++++- src/shows/entities/show.entity.ts | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/shows/dto/show.dto.ts b/src/shows/dto/show.dto.ts index 32a14c7..930c1a1 100644 --- a/src/shows/dto/show.dto.ts +++ b/src/shows/dto/show.dto.ts @@ -1 +1,8 @@ -export class ShowDto {} +export class ShowDto { + _id: string; + title: string; + year: number; + seasons: number; + description: string; + genres: string[]; +} diff --git a/src/shows/entities/show.entity.ts b/src/shows/entities/show.entity.ts index ae469be..25f489e 100644 --- a/src/shows/entities/show.entity.ts +++ b/src/shows/entities/show.entity.ts @@ -1 +1,8 @@ -export class Show {} +export interface Show { + _id: string; + title: string; + year: number; + seasons: number; + description: number; + genres: string[]; +}