
using System.ComponentModel.DataAnnotations;

namespace Sockeye.Models
{    
    public class DataListSavedFilter
    {
        public long Id { get; set; }
        public uint Concurrency { get; set; }

        [Required]
        public long UserId { get; set; }//only relevant if non-public for fetching either in list or single (public true OR userid matches)
        [Required, MaxLength(255)]
        public string Name { get; set; }//max 255 characters ascii set    
        [Required]
        public bool Public { get; set; }
        [Required]
        public bool DefaultFilter { get; set; } //is the users default filter for this listkey
        [Required, MaxLength(255)]
        public string ListKey { get; set; }//max 255 characters ascii set 
        public string Filter { get; set; }//JSON serialized List<DataListFilterOption> object of DataListBase
         
      

    }
}
