2024-04-27 20:23:32 +04:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
2024-04-27 12:35:20 +04:00
|
|
|
|
|
|
|
|
|
namespace DatabaseImplement.Models
|
|
|
|
|
{
|
|
|
|
|
public class WorkerMachine
|
|
|
|
|
{
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
[Required]
|
|
|
|
|
public int WorkerId { get; set; }
|
|
|
|
|
[Required]
|
|
|
|
|
public int MachineId { get; set; }
|
|
|
|
|
[Required]
|
|
|
|
|
public int Count { get; set; }
|
|
|
|
|
public virtual Worker Worker { get; set; } = new();
|
|
|
|
|
public virtual Machine Machine { get; set; } = new();
|
|
|
|
|
}
|
|
|
|
|
}
|