18 lines
429 B
C#
18 lines
429 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace nuget_host.Data
|
|
{
|
|
public class Package
|
|
{
|
|
[Key][Required]
|
|
public string Id { get; set; }
|
|
|
|
[Required]
|
|
[ForeignKey("Owner")]
|
|
public string OwnerId { get; set; }
|
|
|
|
public string Description { get; set; }
|
|
virtual public ApplicationUser Owner { get; set; }
|
|
}
|
|
} |