isn/src/nuget-host/Data/Package.cs
Paul Schneider b8809deaa1 search
2021-06-21 23:38:05 +01:00

27 lines
No EOL
627 B
C#

using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Newtonsoft.Json;
namespace nuget_host.Data
{
public class Package
{
[Key][Required]
public string Id { get; set; }
[Required]
[ForeignKey("Owner")]
public string OwnerId { get; set; }
[StringLength(1024)]
public string Description { get; set; }
[JsonIgnore]
virtual public ApplicationUser Owner { get; set; }
[JsonIgnore]
public virtual List<PackageVersion> Versions { get; set; }
}
}