Commit Id and TimerStamps

This commit is contained in:
2023-04-30 23:40:39 +01:00
parent cea05fe8ff
commit 06b0115405
10 changed files with 48 additions and 41 deletions

View File

@ -2,9 +2,6 @@ using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using isnd.Data.Catalog;
using isnd.Data.Packages.Catalog;
using isnd.Interfaces;
using Newtonsoft.Json;
@ -24,7 +21,7 @@ namespace isnd.Data.Packages
DateTimeOffset CommitTimeStamp { get; set; }
}
public class Package : IObject, IPackage
public class Package
{
[Key]
[Required]
@ -53,16 +50,16 @@ namespace isnd.Data.Packages
/// </summary>
/// <value></value>
[Required]
[JsonIgnore]
[JsonIgnore]
[ForeignKey("LatestCommit")]
public long CommitNId { get; set; }
[NotMapped]
public string CommitId { get => CommitNId.ToString(); }
[ForeignKey("CommitNId")]
public virtual Commit LatestCommit { get; set; }
public DateTimeOffset CommitTimeStamp { get; set; }
}
}