37 lines
956 B
C#
37 lines
956 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Lagerbestand.Models;
|
|
|
|
/// <summary>
|
|
/// Represents a shared editable note on a Kanban task (like MS Teams wiki)
|
|
/// </summary>
|
|
public class KanbanTaskNote
|
|
{
|
|
public Guid Id { get; set; } = Guid.NewGuid();
|
|
|
|
public Guid TaskId { get; set; }
|
|
|
|
[Required]
|
|
[MaxLength(100)]
|
|
public string Title { get; set; } = "Notizen";
|
|
|
|
/// <summary>
|
|
/// Rich text content of the note
|
|
/// </summary>
|
|
public string Content { get; set; } = string.Empty;
|
|
|
|
public int SortOrder { get; set; }
|
|
|
|
/// <summary>
|
|
/// Last user who edited the note
|
|
/// </summary>
|
|
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; }
|
|
}
|