Initial commit: HelpDesk ICHN - .NET 10 backend + Next.js 16 frontend

This commit is contained in:
Nurfog committed 2026-09-10 10:20:51 -03:00
commit 359f0caf85
90 files changed
+13395

No files matched your search

@@ -0,0 +1,49 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using HelpDesk.Models.Enums;
namespace HelpDesk.Models.Entities;
[Table("tickets")]
public class Ticket
{
[Key]
public Guid Id { get; set; }
[Required]
[MaxLength(200)]
public string Title { get; set; } = string.Empty;
[Required]
public string Description { get; set; } = string.Empty;
[Required]
[MaxLength(50)]
public TicketStatus Status { get; set; } = TicketStatus.Open;
[Required]
[MaxLength(50)]
public TicketPriority Priority { get; set; } = TicketPriority.Medium;
[Required]
[MaxLength(50)]
public string TicketNumber { get; set; } = string.Empty;
public Guid RequesterId { get; set; }
public Guid? AssigneeId { get; set; }
public Guid? GroupId { get; set; }
public Guid? SlaPolicyId { get; set; }
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;
public DateTime? FirstResponseAt { get; set; }
public DateTime? ResolvedAt { get; set; }
public DateTime? ClosedAt { get; set; }
// Navigation
public User Requester { get; set; } = null!;
public User? Assignee { get; set; }
public Group? Group { get; set; }
public SLAPolicy? SlaPolicy { get; set; }
public ICollection<TicketComment> Comments { get; set; } = new List<TicketComment>();
}