* Extended functionalities
* Added different UIs
This commit is contained in:
45
MealPlan.Api/Models/IngredientNutritionCatalogItem.cs
Normal file
45
MealPlan.Api/Models/IngredientNutritionCatalogItem.cs
Normal file
@@ -0,0 +1,45 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace MealPlan.Api.Models;
|
||||
|
||||
[Table("IngredientNutritionCatalog")]
|
||||
public class IngredientNutritionCatalogItem
|
||||
{
|
||||
[Column("Id")]
|
||||
public int Id { get; set; }
|
||||
|
||||
[Column("CategoryId")]
|
||||
public int CategoryId { get; set; }
|
||||
|
||||
[Column("Name")]
|
||||
[MaxLength(255)]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
[Column("NamePl")]
|
||||
[MaxLength(255)]
|
||||
public string? NamePl { get; set; }
|
||||
|
||||
[Column("CaloriesPer100G")]
|
||||
public int CaloriesPer100G { get; set; }
|
||||
|
||||
[Column("ProteinGPer100G")]
|
||||
public decimal ProteinGPer100G { get; set; }
|
||||
|
||||
[Column("FatGPer100G")]
|
||||
public decimal FatGPer100G { get; set; }
|
||||
|
||||
[Column("CarbsGPer100G")]
|
||||
public decimal CarbsGPer100G { get; set; }
|
||||
|
||||
[Column("FiberGPer100G")]
|
||||
public decimal? FiberGPer100G { get; set; }
|
||||
|
||||
[Column("SortOrder")]
|
||||
public int SortOrder { get; set; }
|
||||
|
||||
[Column("IsActive")]
|
||||
public bool IsActive { get; set; } = true;
|
||||
|
||||
public IngredientCategory? Category { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user