26 lines
776 B
C#
26 lines
776 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using PuferFishContracts.Enums;
|
|
|
|
namespace PuferFishDataBase.Models;
|
|
|
|
internal class Product
|
|
{
|
|
public required string Id { get; set; }
|
|
public required string ProductName { get; set; }
|
|
public ProductType ProductType { get; set; }
|
|
public double Price { get; set; }
|
|
public bool IsDeleted { get; set; }
|
|
public string? PrevProductName { get; set; }
|
|
public string? PrevPrevProductName { get; set; }
|
|
|
|
[ForeignKey("ProductId")]
|
|
public List<ProductHistory>? ProductHistories { get; set; }
|
|
[ForeignKey("ProductId")]
|
|
public List<SaleProduct>? SaleProducts { get; set; }
|
|
}
|