correct cascade delete options

This commit is contained in:
Anika Raemer 2025-10-04 18:01:46 +02:00
parent e33dfdb845
commit b1b714f44e
19 changed files with 207 additions and 52 deletions

View file

@ -1,4 +1,3 @@
import { UUID } from "crypto";
import { AbstractDto } from "./AbstractDto.js";
export class RecipeIngredientDto extends AbstractDto{
@ -7,5 +6,5 @@ export class RecipeIngredientDto extends AbstractDto{
amount?: number;
unit?: string;
sortOrder!: number;
ingredientGroupId?: UUID;
ingredientGroupId?: string;
}

View file

@ -1,10 +1,9 @@
import { UUID } from "crypto";
import { AbstractDto } from "./AbstractDto.js";
import { RecipeIngredientDto } from "./RecipeIngredientDto.js";
export class RecipeIngredientGroupDto extends AbstractDto{
title?: string;
sortOrder!: number;
recipeId?: UUID;
recipeId?: string;
ingredients!: RecipeIngredientDto[];
}