36 lines
814 B
C#
36 lines
814 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace MealPlan.Api.Models;
|
|
|
|
[Table("DrinkCatalog")]
|
|
public class DrinkCatalogItem
|
|
{
|
|
[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("DefaultVolumeMl")]
|
|
public int DefaultVolumeMl { get; set; }
|
|
|
|
[Column("CaloriesPer100Ml")]
|
|
public decimal? CaloriesPer100Ml { get; set; }
|
|
|
|
[Column("IconEmoji")]
|
|
[MaxLength(16)]
|
|
public string? IconEmoji { get; set; }
|
|
|
|
[Column("SortOrder")]
|
|
public int SortOrder { get; set; }
|
|
|
|
[Column("IsActive")]
|
|
public bool IsActive { get; set; }
|
|
}
|