Files
Pibd-21_Semin_D.A._SmallSof…/SmallSoftwareProject/SmallSoftwareDatabase/Models/Software.cs
2025-03-12 22:39:58 +04:00

25 lines
811 B
C#

using SmallSoftwareContracts.Enums;
using System.ComponentModel.DataAnnotations.Schema;
namespace SmallSoftwareDatabase.Models;
internal class Software
{
public required string Id { get; set; }
public required string SoftwareName { get; set; }
public SoftwareType SoftwareType { get; set; }
public required string ManufacturerId { get; set; }
public double Price { get; set; }
public bool IsDeleted { get; set; }
public string? PrevSoftwareName { get; set; }
public string? PrevPrevSoftwareName { get; set; }
public Manufacturer? Manufacturer { get; set; }
[ForeignKey("SoftwareId")]
public List<SoftwareHistory>? SoftwareHistories { get; set; }
[ForeignKey("SoftwareId")]
public List<InstallationRequest>? InstallationRequests { get; set; }
}