using System.ComponentModel.DataAnnotations;

namespace MotorPlantDatabaseImplement.Models
{
    public class EngineComponent
    {
        public int Id { get; set; }
        [Required]
        public int EngineId { get; set; }
        [Required]
        public int ComponentId { get; set; }
        [Required]
        public int Count { get; set; }
        public virtual Component Component { get; set; } = new();
        public virtual Engine Engine { get; set; } = new();
    }
}
