Files
ReifenSpaeth/Lagerbestand/Models/KanbanTaskTodo.cs
T

28 lines
650 B
C#

using System.ComponentModel.DataAnnotations;
namespace Lagerbestand.Models;
/// <summary>
/// Represents a todo/checklist item within a Kanban task
/// </summary>
public class KanbanTaskTodo
{
public Guid Id { get; set; } = Guid.NewGuid();
public Guid TaskId { get; set; }
[Required]
[MaxLength(500)]
public string Text { get; set; } = string.Empty;
public bool IsCompleted { get; set; }
public int SortOrder { get; set; }
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
public DateTime? CompletedAt { get; set; }
// Navigation properties
public virtual KanbanTask? Task { get; set; }
}