2024-04-07 15:05:57 +04:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
2024-03-27 00:02:36 +04:00
|
|
|
|
|
|
|
|
|
namespace PizzeriaDatabaseImplement.Models
|
|
|
|
|
{
|
2024-04-07 15:05:57 +04:00
|
|
|
|
public class PizzaComponent
|
2024-03-27 00:02:36 +04:00
|
|
|
|
{
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
[Required]
|
2024-04-07 15:05:57 +04:00
|
|
|
|
public int PizzaId { get; set; }
|
2024-03-27 00:02:36 +04:00
|
|
|
|
[Required]
|
|
|
|
|
public int ComponentId { get; set; }
|
|
|
|
|
[Required]
|
|
|
|
|
public int Count { get; set; }
|
|
|
|
|
public virtual Component Component { get; set; } = new();
|
|
|
|
|
public virtual Pizza Pizza { get; set; } = new();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|