Files
Pibd-21_Semin_D.A._SmallSof…/SmallSoftwareProject/SmallSoftwareDatabase/Models/Software.cs
2025-03-12 16:35:56 +04:00

30 lines
927 B
C#

using SmallSoftwareContracts.Enums;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
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; }
}