* Extended functionalities

* Added different UIs
This commit is contained in:
2026-06-24 21:43:40 +02:00
parent 282f4864c4
commit f15bb7a916
348 changed files with 59057 additions and 498 deletions

View 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; }
}