25 lines
524 B
C#
25 lines
524 B
C#
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; }
|
|
}
|