using System.ComponentModel.DataAnnotations.Schema;
using DiplomovaPrace.Model.Products;

namespace DiplomovaPrace.Model.Orders
{
	public class OrderItem
	{
		public int ID { get; set; }

		[Column(TypeName = "decimal(18,2)")]
		public decimal Price { get; set; }

		public int Amount { get; set; }

		public Product Product { get; set; }

		public int ProductID { get; set; }

		public Order Order { get; set; }

		public int OrderID { get; set; }
	}
}
