Skip to content

Commit

Permalink
more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Tschonti committed May 18, 2024
1 parent 591325e commit 59aef8c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion apps/backend/src/drinks/entities/drink.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@ import { IsBoolean, IsDateString, IsEnum, IsNotEmpty, IsOptional, IsString, IsUU
import { IsFloat } from 'src/util/is-float.validator';

export class Drink {
/**
* @example aaaaaaaa-bbbb-cccc-dddd-eeee-ff0123456789
*/
@IsUUID()
id: string;

/**
* Name of the drink
* @example Soproni meggy
* @example 'Soproni meggy'
*/
@IsString()
@IsNotEmpty()
Expand All @@ -35,6 +38,9 @@ export class Drink {
@IsBoolean()
custom: boolean;

/**
* @example "A beer that doesn't really taste like beer."
*/
@IsString()
@IsOptional()
description?: string;
Expand Down

0 comments on commit 59aef8c

Please sign in to comment.