Erste lauffähige Version
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user