Files
Pibd-21_Semin_D.A._SmallSof…/SmallSoftwareProject/SmallSoftwareDatabase/Models/SoftwareHistory.cs
2025-05-21 20:37:22 +04:00

16 lines
417 B
C#

using System.ComponentModel.DataAnnotations;
namespace SmallSoftwareDatabase.Models;
internal class SoftwareHistory
{
[Key]
public string Id { get; set; } = Guid.NewGuid().ToString();
[Required]
public required string SoftwareId { get; set; }
public double OldPrice { get; set; }
public DateTime ChangeDate { get; set; } = DateTime.UtcNow;
public Software? Software { get; set; }
}