using Microsoft.EntityFrameworkCore.Metadata.Internal; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace PSTW_CentralSystem.Models { //[Table("modulesettings")] public class ModuleSettingModel { [Key] [Required] public int SettingId { get; set; } [Required] [MaxLength(50)] public string ModuleName { get; set; } [Column(TypeName = "json")] public string? AllowedUsertype { get; set; } public int ModuleStatus { get; set; } public string? Description { get; set; } [NotMapped] // This property will not be mapped to the database public string[]? AllowedUsertypesArray { get; set; } //[NotMapped] //public List? RoleList { get; set; } } }