using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using System;

namespace Ropin.Inspection.Model.Entities
{
    public class TDEV_BoxTemplate
    {
        [Key]
        [MaxLength(50)]
        public string C_ID { get; set; }
        [MaxLength(100)]
        [Required]
        public string C_Name { get; set; }
        
        [MaxLength(255)]
        [Required]
        public string C_QRCode { get; set; }

        [MaxLength(255)]
        [Required]
        public string C_Marker { get; set; }

        [MaxLength(255)]
        public string C_ProdArea { get; set; }

        [MaxLength(255)]
        public string C_Manufacturer { get; set; }

        [MaxLength(500)]
        public string C_ImagePath { get; set; }

        [MaxLength(500)]
        public string C_IconPath { get; set; }

        [MaxLength(500)]
        public string C_ThreeDPath { get; set; }

        [MaxLength(255)]
        public string C_Parameter { get; set; }

        [MaxLength(255)]
        public string C_Contacts { get; set; }

        [MaxLength(255)]
        public string C_ContactPhone { get; set; }

        [MaxLength(255)]
        public string C_OfficialWebsiteUrl { get; set; }
        public int? I_ValiDays { get; set; }
       
        [MaxLength(1)]
        [Required]
        public int I_ProtocolType { get; set; }

        public int? I_Sort { get; set; }

        [Display(Name = "备注")]
        [MaxLength(1024)]
        public string C_Remark { get; set; }
        [Display(Name = "创建人")]
        [Required]
        public Guid C_CreateBy { get; set; }
        [Display(Name = "创建时间")]
        [Required]
        public DateTime D_CreateOn { get; set; }
        [Display(Name = "更新者")]
        public Guid? C_LastUpdatedBy { get; set; }
        [Display(Name = "更新时间")]
        public DateTime? D_LastUpdatedOn { get; set; }
        [Display(Name = "状态")]
        [Required]
        [MaxLength(1)]
        public string C_Status { get; set; } = "1";
    }
}