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