better dto/entity structure for GET/POST

This commit is contained in:
Joe Arndt 2026-02-25 14:33:21 -06:00
parent 8f846bd253
commit 389ef8c7ce
9 changed files with 106 additions and 77 deletions

View file

@ -28,16 +28,16 @@ export class GetExpenseDto {
@ApiPropertyOptional({
description: 'Note about expense'
})
note?: string;
note: string;
@ApiPropertyOptional({
description: 'Merchant for the expense'
})
merchant?: Merchant;
merchant: Merchant;
@ApiPropertyOptional({
type: [Tag],
description: 'List of tags for the expense'
})
tags?: Tag[];
tags: Tag[];
}