/*
*代码由框架生成,任何更改都可能导致被代码生成器覆盖
*如果数据库字段发生变化,请在代码生器重新生成此Model
*/
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;
using VolPro.Entity.SystemModels;
namespace VolPro.Entity.DomainModels
{
[Entity(TableCnName = "产线管理",TableName = "MES_ProductionLine",DetailTable = new Type[] { typeof(MES_ProductionLineDevice)},DetailTableCnName = "产线设备",DBServer = "ServiceDbContext")]
public partial class MES_ProductionLine:ServiceEntity
{
///
///产线ID
///
[SugarColumn(IsPrimaryKey = true)]
[Key]
[Display(Name ="产线ID")]
[MaxLength(36)]
[Column(TypeName="uniqueidentifier")]
[Editable(true)]
[Required(AllowEmptyStrings=false)]
public Guid ProductionLineID { get; set; }
///
///产线名称
///
[Display(Name ="产线名称")]
[MaxLength(100)]
[Column(TypeName="nvarchar(100)")]
[Editable(true)]
[Required(AllowEmptyStrings=false)]
public string LineName { get; set; }
///
///产线类型
///
[Display(Name ="产线类型")]
[MaxLength(100)]
[Column(TypeName="nvarchar(100)")]
[Editable(true)]
public string LineType { get; set; }
///
///产能信息
///
[Display(Name ="产能信息")]
[MaxLength(100)]
[Column(TypeName="nvarchar(100)")]
public string Capacity { get; set; }
///
///产线状态
///
[Display(Name ="产线状态")]
[MaxLength(100)]
[Column(TypeName="nvarchar(100)")]
public string Status { get; set; }
///
///负责人
///
[Display(Name ="负责人")]
[MaxLength(100)]
[Column(TypeName="nvarchar(100)")]
[Editable(true)]
public string ResponsiblePerson { get; set; }
///
///产线位置
///
[Display(Name ="产线位置")]
[MaxLength(100)]
[Column(TypeName="nvarchar(100)")]
[Editable(true)]
public string Location { get; set; }
///
///启用日期
///
[Display(Name ="启用日期")]
[Column(TypeName="datetime")]
[Editable(true)]
public DateTime? StartDate { get; set; }
///
///停用日期
///
[Display(Name ="停用日期")]
[Column(TypeName="datetime")]
[Editable(true)]
public DateTime? EndDate { get; set; }
///
///备注信息
///
[Display(Name ="备注信息")]
[MaxLength(100)]
[Column(TypeName="nvarchar(100)")]
[Editable(true)]
public string Remarks { get; set; }
///
///创建人ID
///
[Display(Name ="创建人ID")]
[Column(TypeName="int")]
[Editable(true)]
public int? CreateID { get; set; }
///
///创建人
///
[Display(Name ="创建人")]
[MaxLength(100)]
[Column(TypeName="nvarchar(100)")]
[Editable(true)]
public string Creator { get; set; }
///
///创建时间
///
[Display(Name ="创建时间")]
[Column(TypeName="datetime")]
[Editable(true)]
public DateTime? CreateDate { get; set; }
///
///修改人ID
///
[Display(Name ="修改人ID")]
[Column(TypeName="int")]
[Editable(true)]
public int? ModifyID { get; set; }
///
///修改人
///
[Display(Name ="修改人")]
[MaxLength(100)]
[Column(TypeName="nvarchar(100)")]
[Editable(true)]
public string Modifier { get; set; }
///
///修改时间
///
[Display(Name ="修改时间")]
[Column(TypeName="datetime")]
[Editable(true)]
public DateTime? ModifyDate { get; set; }
[Display(Name ="产线设备")]
[ForeignKey("ProductionLineID")][Navigate(NavigateType.OneToMany,nameof(ProductionLineID),nameof(ProductionLineID))]
public List MES_ProductionLineDevice { get; set; }
}
}