using System.ComponentModel.DataAnnotations; namespace WebAPI.Models { public class DataRow { #region Properties [Key] public Guid Id { get; set; } [Required] public string? Code { get; set; } [Required] public float Value { get; set; } //Description fields public string? Desc1 { get; set; } public string? Desc2 { get; set; } public string? Desc3 { get; set; } public string? Desc4 { get; set; } public string? Desc5 { get; set; } public DateTime CreatedAt { get; set; } public DateTime ModifiedAt { get; set; } public bool IsDeleted { get; set; } #endregion #region Relations [Required] public Guid CreatedById { get; set; } public User? CreatedBy { get; set; } [Required] public Guid ModifiedById { get; set; } public User? ModifiedBy { get; set; } #endregion } }