[Table("ProductionOrder", Schema = "public")]
public class ProductionOrder
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int Id { get; set; }
public string Code { get; set; }
[ForeignKey("ProductId")]
public Product Product { get; set; }
public int ProductId { get; set; }
[ForeignKey("CustomerId")]
public Customer Customer { get; set; }
public int CustomerId { get; set; }
}
[Table("ProductionOrder", Schema = "public")]
public class ProductionOrder
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int Id { get; set; }
public string Code { get; set; }
[ForeignKey("ProductId")]
public Product Product { get; set; }
public int ProductId { get; set; }
[ForeignKey("CustomerId")]
public Customer Customer { get; set; }
public int CustomerId { get; set; }
}