add dtos and fix entities including migrations
This commit is contained in:
parent
ad6ee64565
commit
d94251dea4
9 changed files with 125 additions and 3 deletions
|
|
@ -8,7 +8,16 @@ import { RecipeIngredientGroupEntity } from "./RecipeIngredientGroupEntity.js";
|
|||
@Entity({ name: "recipe_ingredient" })
|
||||
export class RecipeIngredientEntity extends AbstractEntity {
|
||||
@Column({ nullable: false })
|
||||
title!: string;
|
||||
name!: string;
|
||||
|
||||
@Column({nullable: true})
|
||||
subtext?: string;
|
||||
|
||||
@Column({nullable: true})
|
||||
amount?: number;
|
||||
|
||||
@Column({nullable: true})
|
||||
unit?: string;
|
||||
|
||||
@Column({ nullable: false })
|
||||
sortOrder!: number;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue