33 lines
811 B
C#
33 lines
811 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using isnd.Data.Catalog;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace isnd.Data
|
|
{
|
|
public class Package : IObject
|
|
{
|
|
[Key][Required]
|
|
public string Id { get; set; }
|
|
|
|
[Required]
|
|
[ForeignKey("Owner")]
|
|
public string OwnerId { get; set; }
|
|
|
|
[StringLength(1024)]
|
|
public string Description { get; set; }
|
|
|
|
public bool Public { get ; set;}
|
|
|
|
[JsonIgnore]
|
|
virtual public ApplicationUser Owner { get; set; }
|
|
|
|
[JsonIgnore]
|
|
|
|
public virtual List<PackageVersion> Versions { get; set; }
|
|
public string CommitId { get; set; }
|
|
public DateTime CommitTimeStamp { get; set; }
|
|
}
|
|
} |