using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Text; using System.Text.Json.Serialization; using System.Threading.Tasks; namespace KTUSAPS.Data.Model { public class Issue { [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int Id { get; set; } [MaxLength(64)] public string UserID { get; set; } [MaxLength(320)] public string Email { get; set; } public bool Publishable { get; set; } public bool Solved { get; set; } = false; public DateTime Created { get; set; } [MaxLength] public string Description { get; set; } public int IssueTypeId { get; set; } [JsonIgnore] public virtual IssueType IssueType { get; set; } [JsonIgnore] public virtual PublishedProblem Problem { get; set; } [JsonIgnore] public virtual PublishedFeedback Feedback { get; set; } public Issue() { Created = DateTime.Now; } } }