using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace HelpDesk.Models.Entities; [Table("activity_logs")] public class ActivityLog { [Key] public Guid Id { get; set; } public Guid? UserId { get; set; } [Required] [MaxLength(100)] public string EntityType { get; set; } = string.Empty; public int? EntityId { get; set; } [Required] [MaxLength(100)] public string Action { get; set; } = string.Empty; public string? Details { get; set; } public DateTime CreatedAt { get; set; } = DateTime.UtcNow; // Navigation public User? User { get; set; } }