Initial commit
This commit is contained in:
24
MealPlan.Api/Models/RecipeStep.cs
Normal file
24
MealPlan.Api/Models/RecipeStep.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace MealPlan.Api.Models;
|
||||
|
||||
/// <summary>
|
||||
/// Maps to the existing "RecipeSteps" table.
|
||||
/// </summary>
|
||||
[Table("RecipeSteps")]
|
||||
public class RecipeStep
|
||||
{
|
||||
[Column("Id")]
|
||||
public int Id { get; set; }
|
||||
|
||||
[Column("RecipeId")]
|
||||
public int RecipeId { get; set; }
|
||||
|
||||
[Column("StepNumber")]
|
||||
public int StepNumber { get; set; }
|
||||
|
||||
[Column("Description")]
|
||||
public string Description { get; set; } = string.Empty;
|
||||
|
||||
public Recipe? Recipe { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user