Files
PIBD24_BoikoM.S._Candyhouse/CandyHouseSolution/CandyHouseDataBase/Models/Ingredient.cs
2025-03-13 13:38:00 +04:00

21 lines
448 B
C#

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace CandyHouseDataBase.Models;
public class Ingredient
{
[Key]
public string Id { get; set; } = Guid.NewGuid().ToString();
[Required]
public string Name { get; set; }
[Required]
public string Unit { get; set; }
[Required]
public decimal Cost { get; set; }
public List<Recipe> Recipes { get; set; }
}