Initial commit: HelpDesk ICHN - .NET 10 backend + Next.js 16 frontend

This commit is contained in:
Nurfog committed 2026-09-10 10:20:51 -03:00
commit 359f0caf85
90 files changed
+13395

No files matched your search

@@ -0,0 +1,31 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace HelpDesk.Models.Entities;
[Table("knowledge_base_articles")]
public class KnowledgeBaseArticle
{
[Key]
public Guid Id { get; set; }
[Required]
[MaxLength(200)]
public string Title { get; set; } = string.Empty;
[Required]
public string Content { get; set; } = string.Empty;
public Guid CategoryId { get; set; }
public Guid AuthorId { get; set; }
public bool IsPublished { get; set; }
public int ViewCount { get; set; }
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;
// Navigation
public KnowledgeBaseCategory Category { get; set; } = null!;
public User Author { get; set; } = null!;
}