Files
2026-05-27 11:12:19 +02:00

32 lines
975 B
C#

namespace TodoTicketApp.Models;
public enum TicketPriority
{
Low = 0,
Medium = 1,
High = 2,
Critical = 3
}
public class Ticket
{
public Guid Id { get; set; } = Guid.NewGuid();
public string Title { get; set; } = string.Empty;
public string Description { get; set; } = string.Empty;
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
public TicketPriority Priority { get; set; } = TicketPriority.Medium;
public bool IsCompleted { get; set; } = false;
public bool IsWaitingForFeedback { get; set; } = false;
// Relationen
public List<TicketComment> Comments { get; set; } = new();
public List<string> AttachmentNames { get; set; } = new();
}
public class TicketComment
{
public Guid Id { get; set; } = Guid.NewGuid();
public Guid TicketId { get; set; }
public string Text { get; set; } = string.Empty;
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
}