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; } public string? AllowedUserType { get; set; } [Column(TypeName = "json")] public List? MethodAllowedUserType { get; set; } public int ModuleStatus { get; set; } public string? Description { get; set; } } public class MethodAllowedUserType { public string? MethodName { get; set; } public string[]? AllowedUserTypesArray { get; set; } } }