using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IronIntel.Contractor.Attachment
{
    public class AttachmentItem
    {
        public long ID { get; set; }
        public string StringID { get; set; }//为了兼容旧数据库中的ATTACHES.ATTACHID字段,旧数据库中的表由Workorder和MaintanceLog在使用
        public string FileName { get; set; }
        public string Source { get; set; }
        public string SourceID { get; set; }
        public string AddedByUserIID { get; set; }
        public string AddedByUserName { get; set; }
        public string Notes { get; set; }
        public DateTime AddedOn { get; set; }
        public string AddedOnStr { get { return AddedOn.ToString(); } }
        public byte[] FileData { get; set; }
    }
}
