save recipes
This commit is contained in:
parent
3a887d8dbb
commit
380eb4cd21
18 changed files with 412 additions and 87 deletions
|
|
@ -10,6 +10,6 @@ export class RecipeDto extends AbstractDto {
|
|||
title!: string;
|
||||
amount?: number
|
||||
amountDescription?: string;
|
||||
instructions?: RecipeInstructionStepDto[];
|
||||
ingredientGroups?: RecipeIngredientGroupDto[];
|
||||
instructions!: RecipeInstructionStepDto[];
|
||||
ingredientGroups!: RecipeIngredientGroupDto[];
|
||||
}
|
||||
|
|
@ -2,10 +2,10 @@ import { UUID } from "crypto";
|
|||
import { AbstractDto } from "./AbstractDto.js";
|
||||
|
||||
export class RecipeIngredientDto extends AbstractDto{
|
||||
name?: string;
|
||||
name!: string;
|
||||
subtext?: string;
|
||||
amount?: number;
|
||||
unit?: string;
|
||||
sortOrder?: number;
|
||||
sortOrder!: number;
|
||||
ingredientGroupId?: UUID;
|
||||
}
|
||||
|
|
@ -4,7 +4,7 @@ import { RecipeIngredientDto } from "./RecipeIngredientDto.js";
|
|||
|
||||
export class RecipeIngredientGroupDto extends AbstractDto{
|
||||
title?: string;
|
||||
sortOrder?: string;
|
||||
sortOrder!: number;
|
||||
recipeId?: UUID;
|
||||
ingredients?: RecipeIngredientDto[];
|
||||
ingredients!: RecipeIngredientDto[];
|
||||
}
|
||||
|
|
@ -2,7 +2,7 @@ import { UUID } from "crypto";
|
|||
import { AbstractDto } from "./AbstractDto.js";
|
||||
|
||||
export class RecipeInstructionStepDto extends AbstractDto{
|
||||
text?: string;
|
||||
sortOrder?: number;
|
||||
text!: string;
|
||||
sortOrder!: number;
|
||||
recipeId?: UUID;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue