using System;
using System.Collections.Generic;
using AyaNova.Biz;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Newtonsoft.Json;

namespace AyaNova.Models
{

    public class Report
    {
        public long Id { get; set; }
        public uint Concurrency { get; set; }

        [Required]
        public string Name { get; set; }
        public bool Active { get; set; }
        public string Notes { get; set; }
        public AuthorizationRoles Roles { get; set; }
        [Required]
        public AyaType ObjectType { get; set; }

        
        public string Template { get; set; }
        public string Style { get; set; }
        public string JsPrerender { get; set; }
        public string JsHelpers { get; set; }
        [Required]
        public ReportRenderType RenderType { get; set; }

        //tentative in case of need in future
        // public string Header { get; set; }
        // public string Footer { get; set; }

        public Report()
        {
            RenderType = ReportRenderType.PDF;
            ObjectType = AyaType.NoType;
            Roles = AuthorizationRoles.All;
            Active = true;
        }
        
    }//eoc

}//eons
