Erste lauffähige Version

This commit is contained in:
2026-05-27 10:58:37 +02:00
parent 3181ecaff9
commit 3b46311b09
76 changed files with 61064 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
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;
// 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;
}