Initial commit: Lagerbestand Blazor Projekt
This commit is contained in:
commit
cba9414e92
105 files changed
+36431
No files matched your search
@@ -0,0 +1,36 @@
|
||||
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; }
|
||||
}
|
||||
Reference in new issue
Block a user