LANCommander/LANCommander/Data/Models/Archive.cs
2023-01-14 15:51:41 -06:00

27 lines
731 B
C#

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;
namespace LANCommander.Data.Models
{
public class Archive : BaseModel
{
public string? Changelog { get; set; }
public string ObjectKey { get; set; }
[Required]
public string Version { get; set; }
public Guid GameId { get; set; }
[JsonIgnore]
[ForeignKey(nameof(GameId))]
[InverseProperty("Archives")]
public virtual Game? Game { get; set; }
public virtual Archive? LastVersion { get; set; }
public long UncompressedSize { get; set; }
public long CompressedSize { get; set; }
}
}