using System.ComponentModel.DataAnnotations; namespace Lagerbestand.Models; /// /// Represents a shared editable note on a Kanban task (like MS Teams wiki) /// public class KanbanTaskNote { public Guid Id { get; set; } = Guid.NewGuid(); public Guid TaskId { get; set; } [Required] [MaxLength(100)] public string Title { get; set; } = "Notizen"; /// /// Rich text content of the note /// public string Content { get; set; } = string.Empty; public int SortOrder { get; set; } /// /// Last user who edited the note /// public Guid? LastEditedByUserId { get; set; } public DateTime CreatedAt { get; set; } = DateTime.UtcNow; public DateTime UpdatedAt { get; set; } = DateTime.UtcNow; // Navigation properties public virtual KanbanTask? Task { get; set; } public virtual AppUser? LastEditedByUser { get; set; } }