isn/src/appled/Data/Package.cs

27 lines
627 B
C#
Raw Normal View History

2021-06-21 23:38:05 +01:00
using System.Collections.Generic;
2021-05-16 14:07:14 +01:00
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
2021-06-21 23:38:05 +01:00
using Newtonsoft.Json;
2021-05-16 14:07:14 +01:00
namespace nuget_host.Data
{
public class Package
{
[Key][Required]
public string Id { get; set; }
[Required]
[ForeignKey("Owner")]
public string OwnerId { get; set; }
2021-06-21 23:38:05 +01:00
[StringLength(1024)]
2021-05-16 14:07:14 +01:00
public string Description { get; set; }
2021-06-21 23:38:05 +01:00
[JsonIgnore]
2021-05-16 14:07:14 +01:00
virtual public ApplicationUser Owner { get; set; }
2021-06-21 23:38:05 +01:00
[JsonIgnore]
public virtual List<PackageVersion> Versions { get; set; }
2021-05-16 14:07:14 +01:00
}
}