28 lines
701 B
C#
28 lines
701 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace MealPlan.Api.Models;
|
|
|
|
[Table("IngredientCategories")]
|
|
public class IngredientCategory
|
|
{
|
|
[Column("Id")]
|
|
public int Id { get; set; }
|
|
|
|
[Column("Code")]
|
|
[MaxLength(32)]
|
|
public string Code { get; set; } = string.Empty;
|
|
|
|
[Column("Name")]
|
|
[MaxLength(100)]
|
|
public string Name { get; set; } = string.Empty;
|
|
|
|
[Column("SortOrder")]
|
|
public int SortOrder { get; set; }
|
|
|
|
[Column("IsActive")]
|
|
public bool IsActive { get; set; } = true;
|
|
|
|
public ICollection<IngredientNutritionCatalogItem> Items { get; set; } = new List<IngredientNutritionCatalogItem>();
|
|
}
|