2024-12-23 08:05:29 +01:00

27 lines
623 B
C#
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace GiecChallenge.Models;
public class ProductPurchase
{
public Guid id { get; set; }
[Required]
public Purchase purchase { get; set; } = new Purchase();
[Required]
public Product product { get; set; } = new Product();
[Required]
public Currency currency { get; set; } = new Currency();
[Required]
public Double price { get; set; }
[Required]
public Double quantity { get; set; }
[Required]
public Double CO2Cost { get; set; }
 }