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

namespace AyaNova.Models
{
    public class WorkOrderItemTravel : ICoreBizObjectModel
    {
        public WorkOrderItemTravel()
        {
            Tags = new List<string>();
        }
        public long Id { get; set; }
        public uint Concurrency { get; set; }
        public string Notes { get; set; }
        public string CustomFields { get; set; }
        public List<string> Tags { get; set; }
        [Required]
        public long WorkOrderItemId { get; set; }
        [JsonIgnore]
        public WorkOrderItem WorkOrderItem { get; set; }

        [NotMapped, JsonIgnore]
        public AyaType AyaType { get => AyaType.WorkOrderItemTravel; }

    }//eoc
}//eons
