using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace FMSAdmin.Entities {
    public partial class CmInvestigation1History {
        [Display(Name = "사이트ID"), Key]
        public int SiteId { get; set; }
        [Display(Name = "정보조사1 고유번호"), Key]
        public int InvestigationId { get; set; }
        [Display(Name = "정보조사1 이력 고유번호"), Key]
        public int HistoryId { get; set; }
        [Display(Name = "Rev번호")]
        public int? RevisionNo { get; set; }
        [Display(Name = "파일")]
        public int? FileId { get; set; }
        [Display(Name = "도면설명")]
        [StringLength(2000)]
        public string Description { get; set; }
        [Display(Name = "수정일")]
        [Column(TypeName = "datetime")]
        public DateTime? UpdatedDate { get; set; }
        [Display(Name = "수정자")]
        [StringLength(24)]
        public string UpdatedUserId { get; set; }

        [ForeignKey("SiteId,FileId")]
        public virtual CmFile CmFile { get; set; }
        [ForeignKey("SiteId")]
        public virtual CmSite CmSite { get; set; }
        [ForeignKey("UpdatedUserId")]
        public virtual CmUser CmUser { get; set; }
        [ForeignKey("SiteId,InvestigationId")]
        public virtual CmInvestigation1 CmInvestigation1 { get; set; }
    }
}
