using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Runtime.Serialization;

namespace AMESCoreStudio.WebApi.Models.AMES
{
    /// <summary>
    /// 維修責任單位
    /// </summary>
    [Table("REPAIR_RESPONSIBLE_UNITS", Schema = "JHAMES")]
    [DataContract]
    public class RepairResponsibleUnits
    {
        /// <summary>
        /// 維修責任單位ID
        /// </summary>
        [Key]
        [Column("REPAIR_RESPONSIBLE_ID")]
        [DataMember]
        public int RepairResponsibleID { get; set; }


        /// <summary>
        /// 維修責任單位描述
        /// </summary>
        [Column("REPAIR_RESPONSIBLE_DESC")]
        [DataMember]
        [Required(ErrorMessage = "{0},不能空白")]
        [Display(Name = "維修責任單位描述")]
        [StringLength(100, ErrorMessage = "{0},不能大于{1}")]
        public string RepairResponsibleDesc { get; set; }
    }
}