using System; using System.ComponentModel.DataAnnotations.Schema; using isnd.Interfaces; using Newtonsoft.Json; namespace isnd.Data.Packages.Catalog { /// /// An presence of package in a catalog, /// for availability, or deletion, /// /// public class PackageRef : IObject { [JsonProperty("@id")] public string RefId { get; set; } /// /// Reference type : /// nuget:PackageDetails vs nuget:PackageDelete /// /// [JsonProperty("@type")] public string RefType { get; set; } /// /// The NuGet Id /// /// [JsonProperty("nuget:id")] public string Id { get; set; } /// /// The NuGet version /// /// [JsonProperty("nuget:version")] public string Version { get; set; } [JsonProperty("commitId")] public string CommitId { get; set; } [ForeignKey("CommitId"), JsonIgnore] public virtual Commit LastCommit { get; set; } [JsonProperty("commitTimeStamp")] public DateTime CommitTimeStamp { get; set; } } }