using System.ComponentModel.DataAnnotations.Schema; using Microsoft.AspNetCore.Mvc.ModelBinding.Validation; namespace Marco.Pms.Model.Employees { public class EmployeeDocument { public Guid Id { get; set; } // Unique identifier for the document public string? FileName { get; set; } // Original file name public string? FilePath { get; set; } // Path to the stored file public string? FileType { get; set; } // Type of the document (e.g., PDF, JPG) public long FileSize { get; set; } // File size in bytes public DateTime UploadedAt { get; set; } // Timestamp of upload public Guid EmployeeId { get; set; } // Foreign key to Employee [ValidateNever] [ForeignKey(nameof(EmployeeId))] public Employee? Employee { get; set; } // Navigation property to Employee } }