Skip to content
Snippets Groups Projects
Commit 948b27c6 authored by Lukáš Kratochvíl's avatar Lukáš Kratochvíl
Browse files

feat: added movie entity (response schema) Swagger docs

parent 5c7419c6
No related branches found
No related tags found
No related merge requests found
import { ApiHideProperty } from '@nestjs/swagger';
import { Movie } from '@prisma/client'; import { Movie } from '@prisma/client';
export class MovieEntity implements Movie { export class MovieEntity implements Movie {
id: string; id: string;
@ApiHideProperty()
createdAt: Date; createdAt: Date;
@ApiHideProperty()
updatedAt: Date; updatedAt: Date;
@ApiHideProperty()
deletedAt: Date; deletedAt: Date;
name: string; name: string;
originalName: string; originalName: string;
intro: string; intro: string;
picture: string; picture: string;
publishedAt: number; publishedAt: number;
runTimeMinutes: number; runTimeMinutes: number;
directorId: string; directorId: string;
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment