using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Text; using System.Threading.Tasks; namespace RKISPATTERN.Models { class Problem { public int Id { get; set; } public string Name { get; set; } public string Decription { get; set; } public DateTime date { get; set; } public int customerId { get; set; } [ForeignKey("customerId")] public Customer customer { get; set; } public int? workerId { get; set; } [ForeignKey("workerId")] public Worker? worker { get; set; } public string status { get; set; } public Problem(int id, string name, string decription, DateTime date, Customer customer, Worker worker, string status) { Id = id; Name = name; Decription = decription; this.date = date; this.customer = customer; this.worker = worker; this.status = status; } public Problem(int id, string name, string decription, DateTime date, Customer customer, string status) { Id = id; Name = name; Decription = decription; this.date = date; this.customer = customer; this.status = status; } public Problem() { } } }