diff --git a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/EdiReceive/Dtos/ImportRecordCreateDto.cs b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/EdiReceive/Dtos/ImportRecordCreateDto.cs new file mode 100644 index 0000000..47148be --- /dev/null +++ b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/EdiReceive/Dtos/ImportRecordCreateDto.cs @@ -0,0 +1,131 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace WY.NewJit.EdiReceive.Dtos +{ + public class ImportRecordCreateDto + { + /// + /// 工厂 + /// + public virtual string Factory { get; set; } + + /// + /// 车位 + /// + public virtual string VehicleLocation { get; set; } + + /// + /// 工位 + /// + public virtual string WorkLocation { get; set; } + + /// + /// 底盘号 + /// + public virtual string Vin { get; set; } + + /// + /// 车身号 + /// + public virtual string VehicleBodyCode { get; set; } + + /// + /// 车型代码 + /// + public virtual string VehicleModelCode { get; set; } + + /// + /// 车型名称 + /// + public virtual string VehicleModelName { get; set; } + + /// + /// 车型描述 + /// + public virtual string VehicleModelDesc { get; set; } + + /// + /// 规格 + /// + public virtual string Spec { get; set; } + + /// + /// 规格说明 + /// + public virtual string SpecDesc { get; set; } + + /// + /// 类别 + /// + public virtual string Type { get; set; } + + /// + /// 涂装下线时间 + /// + public virtual DateTime? PaintOfflineTime { get; set; } + + /// + /// 总装上线时间 + /// + public virtual DateTime? OnlineTime { get; set; } + + /// + /// 内饰颜色 + /// + public virtual string InteriorColor { get; set; } + + /// + /// 外饰颜色 + /// + public virtual string ExteriorTrimmingColor { get; set; } + + /// + /// 序列号 + /// + public virtual string SerialNum { get; set; } + + /// + /// 流水号 + /// + public virtual int HostSN { get; set; } + + /// + /// 生产线:A/B + /// + public virtual string ProductLine { get; set; } + + /// + /// 目的 + /// + public virtual string Target { get; set; } + + /// + /// 备注 + /// + public virtual string Remark { get; set; } + + /// + /// 创建时间 + /// + public virtual DateTime? CreateTime { get; set; } + + /// + /// 创建人 + /// + public virtual string CreatePerson { get; set; } + + public virtual DateTime? ImportTime { get; set; } + + public virtual string ImportPerson { get; set; } + + public virtual string Remark2 { get; set; } + + public virtual string Remark3 { get; set; } + + public virtual string Remark4 { get; set; } + + public virtual string Remark5 { get; set; } + } +} diff --git a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/EdiReceive/Dtos/ImportRecordDto.cs b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/EdiReceive/Dtos/ImportRecordDto.cs new file mode 100644 index 0000000..13e2357 --- /dev/null +++ b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/EdiReceive/Dtos/ImportRecordDto.cs @@ -0,0 +1,197 @@ +using Magicodes.ExporterAndImporter.Core; +using Magicodes.ExporterAndImporter.Excel; +using System; +using System.Collections.Generic; +using System.Text; + +namespace WY.NewJit.EdiReceive.Dtos +{ + /// + /// 导入记录表 + /// + [ExcelExporter(Name = "导入记录表", AutoFitAllColumn = true, MaxRowNumberOnASheet = 50000)] //一个Sheet最大允许的行数,设置了之后将输出多个Sheet + [Serializable] + public class ImportRecordDto + { + [ExporterHeader(IsIgnore = true)] + [ImporterHeader(IsIgnore = true)] + public virtual Guid Id { get; set; } + /// + /// 工厂 + /// + [ExporterHeader(DisplayName = "工厂")] + [ImporterHeader(Name = "工厂")] + public virtual string Factory { get; set; } + + /// + /// 车位 + /// + [ExporterHeader(DisplayName = "车位")] + [ImporterHeader(Name = "车位")] + public virtual string VehicleLocation { get; set; } + + /// + /// 工位 + /// + [ExporterHeader(DisplayName = "工位")] + [ImporterHeader(Name = "工位")] + public virtual string WorkLocation { get; set; } + + /// + /// 底盘号 + /// + [ExporterHeader(DisplayName = "底盘号")] + [ImporterHeader(Name = "底盘号")] + public virtual string Vin { get; set; } + + /// + /// 车身号 + /// + [ExporterHeader(DisplayName = "车身号")] + [ImporterHeader(Name = "车身号")] + public virtual string VehicleBodyCode { get; set; } + + /// + /// 车型代码 + /// + [ExporterHeader(DisplayName = "车型代码")] + [ImporterHeader(Name = "车型代码")] + public virtual string VehicleModelCode { get; set; } + + /// + /// 车型名称 + /// + [ExporterHeader(DisplayName = "车型名称")] + [ImporterHeader(Name = "车型名称")] + public virtual string VehicleModelName { get; set; } + + /// + /// 车型描述 + /// + [ExporterHeader(DisplayName = "车型描述")] + [ImporterHeader(Name = "车型描述")] + public virtual string VehicleModelDesc { get; set; } + + /// + /// 规格 + /// + [ExporterHeader(DisplayName = "规格")] + [ImporterHeader(Name = "规格")] + public virtual string Spec { get; set; } + + /// + /// 规格说明 + /// + [ExporterHeader(DisplayName = "规格说明")] + [ImporterHeader(Name = "规格说明")] + public virtual string SpecDesc { get; set; } + + /// + /// 类别 + /// + [ExporterHeader(DisplayName = "类别")] + [ImporterHeader(Name = "类别")] + public virtual string Type { get; set; } + + /// + /// 涂装下线时间 + /// + [ExporterHeader(DisplayName = "涂装下线时间", Format ="yyyy/MM/dd HH:mm:ss")] + [ImporterHeader(Name = "涂装下线时间", Format = "yyyy/MM/dd HH:mm:ss")] + public virtual DateTime? PaintOfflineTime { get; set; } + + /// + /// 总装上线时间 + /// + [ExporterHeader(DisplayName = "总装上线时间", Format = "yyyy/MM/dd HH:mm:ss")] + [ImporterHeader(Name = "总装上线时间", Format = "yyyy/MM/dd HH:mm:ss")] + public virtual DateTime? OnlineTime { get; set; } + + /// + /// 内饰颜色 + /// + [ExporterHeader(DisplayName = "内饰颜色")] + [ImporterHeader(Name = "内饰颜色")] + public virtual string InteriorColor { get; set; } + + /// + /// 外饰颜色 + /// + [ExporterHeader(DisplayName = "外饰颜色")] + [ImporterHeader(Name = "外饰颜色")] + public virtual string ExteriorTrimmingColor { get; set; } + + /// + /// 序列号 + /// + [ExporterHeader(DisplayName = "序列号")] + [ImporterHeader(Name = "序列号")] + public virtual string SerialNum { get; set; } + + /// + /// 流水号 + /// + [ExporterHeader(DisplayName = "流水号")] + [ImporterHeader(Name = "流水号")] + public virtual int HostSN { get; set; } + + /// + /// 生产线:A/B + /// + [ExporterHeader(DisplayName = "生产线:A/B")] + [ImporterHeader(Name = "生产线:A/B")] + public virtual string ProductLine { get; set; } + + /// + /// 目的 + /// + [ExporterHeader(DisplayName = "目的")] + [ImporterHeader(Name = "目的")] + public virtual string Target { get; set; } + + /// + /// 备注 + /// + [ExporterHeader(DisplayName = "备注")] + [ImporterHeader(Name = "备注")] + public virtual string Remark { get; set; } + + /// + /// 创建时间 + /// + [ExporterHeader(DisplayName = "创建时间", Format = "yyyy/MM/dd HH:mm:ss")] + [ImporterHeader(Name = "创建时间", Format = "yyyy/MM/dd HH:mm:ss")] + public virtual DateTime? CreateTime { get; set; } + + /// + /// 创建人 + /// + [ExporterHeader(DisplayName = "创建人")] + [ImporterHeader(Name = "创建人")] + public virtual string CreatePerson { get; set; } + + [ExporterHeader(IsIgnore = true)] + [ImporterHeader(IsIgnore = true)] + public virtual DateTime? ImportTime { get; set; } + + [ExporterHeader(IsIgnore = true)] + [ImporterHeader(IsIgnore = true)] + public virtual string ImportPerson { get; set; } + + [ExporterHeader(IsIgnore = true)] + [ImporterHeader(IsIgnore = true)] + public virtual string Remark2 { get; set; } + + [ExporterHeader(IsIgnore = true)] + [ImporterHeader(IsIgnore = true)] + public virtual string Remark3 { get; set; } + + [ExporterHeader(IsIgnore = true)] + [ImporterHeader(IsIgnore = true)] + public virtual string Remark4 { get; set; } + + [ExporterHeader(IsIgnore = true)] + [ImporterHeader(IsIgnore = true)] + public virtual string Remark5 { get; set; } + } +} diff --git a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/EdiReceive/Dtos/ImportRecordHisCreateDto.cs b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/EdiReceive/Dtos/ImportRecordHisCreateDto.cs new file mode 100644 index 0000000..7982184 --- /dev/null +++ b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/EdiReceive/Dtos/ImportRecordHisCreateDto.cs @@ -0,0 +1,131 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace WY.NewJit.EdiReceive.Dtos +{ + public class ImportRecordHisCreateDto + { + /// + /// 工厂 + /// + public virtual string Factory { get; set; } + + /// + /// 车位 + /// + public virtual string VehicleLocation { get; set; } + + /// + /// 工位 + /// + public virtual string WorkLocation { get; set; } + + /// + /// 底盘号 + /// + public virtual string Vin { get; set; } + + /// + /// 车身号 + /// + public virtual string VehicleBodyCode { get; set; } + + /// + /// 车型代码 + /// + public virtual string VehicleModelCode { get; set; } + + /// + /// 车型名称 + /// + public virtual string VehicleModelName { get; set; } + + /// + /// 车型描述 + /// + public virtual string VehicleModelDesc { get; set; } + + /// + /// 规格 + /// + public virtual string Spec { get; set; } + + /// + /// 规格说明 + /// + public virtual string SpecDesc { get; set; } + + /// + /// 类别 + /// + public virtual string Type { get; set; } + + /// + /// 涂装下线时间 + /// + public virtual DateTime? PaintOfflineTime { get; set; } + + /// + /// 总装上线时间 + /// + public virtual DateTime? OnlineTime { get; set; } + + /// + /// 内饰颜色 + /// + public virtual string InteriorColor { get; set; } + + /// + /// 外饰颜色 + /// + public virtual string ExteriorTrimmingColor { get; set; } + + /// + /// 序列号 + /// + public virtual string SerialNum { get; set; } + + /// + /// 流水号 + /// + public virtual int HostSN { get; set; } + + /// + /// 生产线:A/B + /// + public virtual string ProductLine { get; set; } + + /// + /// 目的 + /// + public virtual string Target { get; set; } + + /// + /// 备注 + /// + public virtual string Remark { get; set; } + + /// + /// 创建时间 + /// + public virtual DateTime? CreateTime { get; set; } + + /// + /// 创建人 + /// + public virtual string CreatePerson { get; set; } + + public virtual DateTime? ImportTime { get; set; } + + public virtual string ImportPerson { get; set; } + + public virtual string Remark2 { get; set; } + + public virtual string Remark3 { get; set; } + + public virtual string Remark4 { get; set; } + + public virtual string Remark5 { get; set; } + } +} diff --git a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/EdiReceive/Dtos/ImportRecordHisDto.cs b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/EdiReceive/Dtos/ImportRecordHisDto.cs new file mode 100644 index 0000000..9cf7f01 --- /dev/null +++ b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/EdiReceive/Dtos/ImportRecordHisDto.cs @@ -0,0 +1,132 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace WY.NewJit.EdiReceive.Dtos +{ + public class ImportRecordHisDto + { + public Guid Id { get; set; } + /// + /// 工厂 + /// + public virtual string Factory { get; set; } + + /// + /// 车位 + /// + public virtual string VehicleLocation { get; set; } + + /// + /// 工位 + /// + public virtual string WorkLocation { get; set; } + + /// + /// 底盘号 + /// + public virtual string Vin { get; set; } + + /// + /// 车身号 + /// + public virtual string VehicleBodyCode { get; set; } + + /// + /// 车型代码 + /// + public virtual string VehicleModelCode { get; set; } + + /// + /// 车型名称 + /// + public virtual string VehicleModelName { get; set; } + + /// + /// 车型描述 + /// + public virtual string VehicleModelDesc { get; set; } + + /// + /// 规格 + /// + public virtual string Spec { get; set; } + + /// + /// 规格说明 + /// + public virtual string SpecDesc { get; set; } + + /// + /// 类别 + /// + public virtual string Type { get; set; } + + /// + /// 涂装下线时间 + /// + public virtual DateTime? PaintOfflineTime { get; set; } + + /// + /// 总装上线时间 + /// + public virtual DateTime? OnlineTime { get; set; } + + /// + /// 内饰颜色 + /// + public virtual string InteriorColor { get; set; } + + /// + /// 外饰颜色 + /// + public virtual string ExteriorTrimmingColor { get; set; } + + /// + /// 序列号 + /// + public virtual string SerialNum { get; set; } + + /// + /// 流水号 + /// + public virtual int HostSN { get; set; } + + /// + /// 生产线:A/B + /// + public virtual string ProductLine { get; set; } + + /// + /// 目的 + /// + public virtual string Target { get; set; } + + /// + /// 备注 + /// + public virtual string Remark { get; set; } + + /// + /// 创建时间 + /// + public virtual DateTime? CreateTime { get; set; } + + /// + /// 创建人 + /// + public virtual string CreatePerson { get; set; } + + public virtual DateTime? ImportTime { get; set; } + + public virtual string ImportPerson { get; set; } + + public virtual string Remark2 { get; set; } + + public virtual string Remark3 { get; set; } + + public virtual string Remark4 { get; set; } + + public virtual string Remark5 { get; set; } + } +} diff --git a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/EdiReceive/Dtos/ImportRecordInputDto.cs b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/EdiReceive/Dtos/ImportRecordInputDto.cs new file mode 100644 index 0000000..a445121 --- /dev/null +++ b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/EdiReceive/Dtos/ImportRecordInputDto.cs @@ -0,0 +1,86 @@ +using System; +using System.Collections.Generic; +using System.Text; +using WY.NewJit.Common; + +namespace WY.NewJit.EdiReceive.Dtos +{ + public class ImportRecordInputDto : PagedAndSortedBase + { + /// + /// 工厂 + /// + public virtual string Factory { get; set; } + + + /// + /// 底盘号 + /// + public virtual string Vin { get; set; } + + + /// + /// 车型代码 + /// + public virtual string VehicleModelCode { get; set; } + + /// + /// 涂装下线时间起 + /// + public virtual DateTime? PaintOfflineTimeBegin { get; set; } + + /// + /// 涂装下线时间止 + /// + public virtual DateTime? PaintOfflineTimeEnd { get; set; } + + /// + /// 总装上线时间起 + /// + public virtual DateTime? OnlineTimeBegin { get; set; } + + /// + /// 总装上线时间止 + /// + public virtual DateTime? OnlineTimeEnd { get; set; } + + /// + /// 序列号起 + /// + public virtual string SerialNumBegin { get; set; } + + /// + /// 序列号止 + /// + public virtual string SerialNumEnd { get; set; } + + /// + /// 流水号起 + /// + public virtual int? HostSNBegin { get; set; } + + /// + /// 流水号止 + /// + public virtual int? HostSNEnd { get; set; } + + /// + /// 生产线:A/B + /// + public virtual string ProductLine { get; set; } + + /// + /// 创建时间起 + /// + public virtual DateTime? CreateTimeBegin { get; set; } + + /// + /// 创建时间止 + /// + public virtual DateTime? CreateTimeEnd { get; set; } + + public virtual DateTime? ImportTimeBegin { get; set; } + public virtual DateTime? ImportTimeEnd { get; set; } + + } +} diff --git a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/EdiReceive/Interfaces/IImportRecordAppService.cs b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/EdiReceive/Interfaces/IImportRecordAppService.cs new file mode 100644 index 0000000..b835209 --- /dev/null +++ b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/EdiReceive/Interfaces/IImportRecordAppService.cs @@ -0,0 +1,69 @@ +using Microsoft.AspNetCore.Http; +using Microsoft.AspNetCore.Mvc; +using System; +using System.Collections.Generic; +using System.Text; +using System.Threading.Tasks; +using Volo.Abp.Application.Dtos; +using Volo.Abp.Application.Services; +using WY.NewJit.EdiReceive.Dtos; + +namespace WY.NewJit.EdiReceive.Interfaces +{ + public interface IImportRecordAppService : IApplicationService + { + #region 接口方法 + + /// 根据筛选条件获取分页实体列表 + /// + /// 输入查询条件 + /// 输入分页条件 + /// 返回符合条件的排序分页列表 + Task> GetListAsync(ImportRecordInputDto input); + + /// + /// 按主键获取唯一实体 + /// + /// 主键 + /// 实体信息 + Task> GetAsync(Guid id); + + /// + /// 添加实体 + /// + /// 添加内容 + /// 执行成功返回真 + Task> CreateAsync(ImportRecordCreateDto input); + + /// + /// 修改实体 + /// + /// 更新主键 + /// 修改内容 + /// 执行成功返回真 + Task UpdateAsync(Guid id, ImportRecordCreateDto input); + + /// + /// 删除实体 + /// + /// 删除主键 + /// 执行成功返回真 + Task DeleteAsync(string id); + + /// + /// 导出信息 + /// + /// 导出查询条件 + /// 执行成功返回真 + Task> ExportAsync(ImportRecordInputDto input); + + /// + /// 导入信息 + /// + /// 导入文件流 + /// 执行成功返回真 + Task ImportAsync([FromForm] IFormFileCollection files); + #endregion + } + +} diff --git a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/WY.NewJit.Application.Contracts.csproj b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/WY.NewJit.Application.Contracts.csproj index f9617ae..c0fdf36 100644 --- a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/WY.NewJit.Application.Contracts.csproj +++ b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/WY.NewJit.Application.Contracts.csproj @@ -22,6 +22,7 @@ + diff --git a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/WY.NewJit.Application.Contracts.xml b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/WY.NewJit.Application.Contracts.xml index 4fdf9fb..1832b26 100644 --- a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/WY.NewJit.Application.Contracts.xml +++ b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/WY.NewJit.Application.Contracts.xml @@ -4,6 +4,565 @@ WY.NewJit.Application.Contracts + + + 工厂 + + + + + 车位 + + + + + 工位 + + + + + 底盘号 + + + + + 车身号 + + + + + 车型代码 + + + + + 车型名称 + + + + + 车型描述 + + + + + 规格 + + + + + 规格说明 + + + + + 类别 + + + + + 涂装下线时间 + + + + + 总装上线时间 + + + + + 内饰颜色 + + + + + 外饰颜色 + + + + + 序列号 + + + + + 流水号 + + + + + 生产线:A/B + + + + + 目的 + + + + + 备注 + + + + + 创建时间 + + + + + 创建人 + + + + + 导入记录表 + + + + + 工厂 + + + + + 车位 + + + + + 工位 + + + + + 底盘号 + + + + + 车身号 + + + + + 车型代码 + + + + + 车型名称 + + + + + 车型描述 + + + + + 规格 + + + + + 规格说明 + + + + + 类别 + + + + + 涂装下线时间 + + + + + 总装上线时间 + + + + + 内饰颜色 + + + + + 外饰颜色 + + + + + 序列号 + + + + + 流水号 + + + + + 生产线:A/B + + + + + 目的 + + + + + 备注 + + + + + 创建时间 + + + + + 创建人 + + + + + 工厂 + + + + + 车位 + + + + + 工位 + + + + + 底盘号 + + + + + 车身号 + + + + + 车型代码 + + + + + 车型名称 + + + + + 车型描述 + + + + + 规格 + + + + + 规格说明 + + + + + 类别 + + + + + 涂装下线时间 + + + + + 总装上线时间 + + + + + 内饰颜色 + + + + + 外饰颜色 + + + + + 序列号 + + + + + 流水号 + + + + + 生产线:A/B + + + + + 目的 + + + + + 备注 + + + + + 创建时间 + + + + + 创建人 + + + + + 工厂 + + + + + 车位 + + + + + 工位 + + + + + 底盘号 + + + + + 车身号 + + + + + 车型代码 + + + + + 车型名称 + + + + + 车型描述 + + + + + 规格 + + + + + 规格说明 + + + + + 类别 + + + + + 涂装下线时间 + + + + + 总装上线时间 + + + + + 内饰颜色 + + + + + 外饰颜色 + + + + + 序列号 + + + + + 流水号 + + + + + 生产线:A/B + + + + + 目的 + + + + + 备注 + + + + + 创建时间 + + + + + 创建人 + + + + + 工厂 + + + + + 底盘号 + + + + + 车型代码 + + + + + 涂装下线时间起 + + + + + 涂装下线时间止 + + + + + 总装上线时间起 + + + + + 总装上线时间止 + + + + + 序列号起 + + + + + 序列号止 + + + + + 流水号起 + + + + + 流水号止 + + + + + 生产线:A/B + + + + + 创建时间起 + + + + + 创建时间止 + + + + + + 按主键获取唯一实体 + + 主键 + 实体信息 + + + + 添加实体 + + 添加内容 + 执行成功返回真 + + + + 修改实体 + + 更新主键 + 修改内容 + 执行成功返回真 + + + + 删除实体 + + 删除主键 + 执行成功返回真 + + + + 导出信息 + + 导出查询条件 + 执行成功返回真 + + + + 导入信息 + + 导入文件流 + 执行成功返回真 + 门板装箱单打印主实体 diff --git a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application/EdiReceive/ImportRecordAppService.cs b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application/EdiReceive/ImportRecordAppService.cs new file mode 100644 index 0000000..6a7f24f --- /dev/null +++ b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application/EdiReceive/ImportRecordAppService.cs @@ -0,0 +1,476 @@ +using Magicodes.ExporterAndImporter.Core; +using Magicodes.ExporterAndImporter.Core.Models; +using Magicodes.ExporterAndImporter.Excel; +using Microsoft.AspNetCore.Http; +using Microsoft.AspNetCore.Mvc; +using Microsoft.Extensions.Logging; +using Shouldly; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Volo.Abp.Application.Dtos; +using Volo.Abp.Application.Services; +using Volo.Abp.BlobStoring; +using Volo.Abp.Domain.Repositories; +using Volo.Abp.Uow; +using WY.NewJit.Common; +using WY.NewJit.EdiReceive.Dtos; +using WY.NewJit.EdiReceive.Entitys; +using WY.NewJit.EdiReceive.Interfaces; +using WY.NewJit.EntityFrameworkCore; +using WY.NewJit.MsgBaseData; + +namespace WY.NewJit.EdiReceive +{ + /// + /// 零件管理应用服务实现 + /// + [Microsoft.AspNetCore.Mvc.Route("api/newjit/import-record")] + [ApiExplorerSettings(GroupName = SwaggerGroupConsts.报文接收)] + public class ImportRecordAppService : ApplicationService, IImportRecordAppService + { + #region 成员 + /// + /// 零件仓储 + /// + private readonly IRepository _importRecordRepository; + + /// + /// 日志 + /// + private ILogger _logger; + + /// + /// Dapper仓储 + /// + private readonly NewJitDapperRepository _newJitDapperRepository; + + /// + /// BLOB存储 + /// + private readonly IBlobContainer _blobContainer; + + /// + /// 字典领域服务 + /// + private readonly DicDomainService _dicDomainService; + + /// + /// 错误信息前缀 + /// + private string _errorMessagePrefix + { + get + { + return System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.Name + "."; + } + } + + + #endregion + + /// + /// 构造函数 + /// + public ImportRecordAppService( + IRepository importRecordRepository, + ILogger logger, + NewJitDapperRepository newJitDapperRepository, + IBlobContainer blobContainer, + DicDomainService dicDomainService + ) + { + _importRecordRepository = importRecordRepository; + _logger = logger; + _newJitDapperRepository = newJitDapperRepository; + _blobContainer = blobContainer; + _dicDomainService = dicDomainService; + } + + #region 私有方法 + private static string GetWhere(ImportRecordInputDto input) + { + string where = ""; + if (input.Factory.HasValue()) + { + where += string.Format(" and Factory = '{0}'", input.Factory); + } + if (input.Vin.HasValue()) + { + where += string.Format(" and Vin = '{0}'", input.Vin); + } + if (input.VehicleModelCode.HasValue()) + { + where += string.Format(" and VehicleModelCode = '{0}'", input.VehicleModelCode); + } + if (input.PaintOfflineTimeBegin.HasValue()) + { + where += string.Format(" and PaintOfflineTime >= '{0}'", input.PaintOfflineTimeBegin); + } + if (input.PaintOfflineTimeEnd.HasValue()) + { + where += string.Format(" and PaintOfflineTime <= '{0}'", input.PaintOfflineTimeEnd); + } + if (input.OnlineTimeBegin.HasValue()) + { + where += string.Format(" and OnlineTime >= '{0}'", input.OnlineTimeBegin); + } + if (input.OnlineTimeEnd.HasValue()) + { + where += string.Format(" and OnlineTime <= '{0}'", input.OnlineTimeEnd); + } + if (input.OnlineTimeBegin.HasValue()) + { + where += string.Format(" and OnlineTime >= '{0}'", input.OnlineTimeBegin); + } + if (input.OnlineTimeEnd.HasValue()) + { + where += string.Format(" and OnlineTime <= '{0}'", input.OnlineTimeEnd); + } + if (input.SerialNumBegin.HasValue()) + { + where += string.Format(" and SerialNum >= '{0}'", input.SerialNumBegin); + } + if (input.SerialNumEnd.HasValue()) + { + where += string.Format(" and SerialNum <= '{0}'", input.SerialNumEnd); + } + if (input.HostSNBegin.HasValue()) + { + where += string.Format(" and HostSN >= '{0}'", input.HostSNBegin); + } + if (input.HostSNEnd.HasValue()) + { + where += string.Format(" and HostSN <= '{0}'", input.HostSNEnd); + } + if (input.ProductLine.HasValue()) + { + where += string.Format(" and ProductLine = '{0}'", input.ProductLine); + } + if (input.CreateTimeBegin.HasValue()) + { + where += string.Format(" and CreateTime >= '{0}'", input.CreateTimeBegin); + } + if (input.CreateTimeEnd.HasValue()) + { + where += string.Format(" and CreateTime <= '{0}'", input.CreateTimeEnd); + } + if (input.ImportTimeBegin.HasValue()) + { + where += string.Format(" and ImportTime >= '{0}'", input.ImportTimeBegin); + } + if (input.ImportTimeEnd.HasValue()) + { + where += string.Format(" and ImportTime <= '{0}'", input.ImportTimeEnd); + } + return where; + } + + /// + /// 取单表记录总数 + /// + /// + /// + /// + private async Task GetEntityCountAsync(string tableName, string where) + { + string sql = $"select count(*) from {tableName} where 1=1 {where}"; + var ret = await _newJitDapperRepository.GetSingleBySqlAsync(sql); + return ret; + } + + /// + /// 取单表当前页数据 + /// + /// + /// + /// + /// + /// + /// + /// + private async Task> GetEntityListAsync(string tableName, string where, string orderFieldName, int pageSize, int pageIndex) + { + int takeNum = pageSize; + int skipNum = (pageIndex - 1) * pageSize; + string sql = $"select * from {tableName} where 1=1 {where} order by {orderFieldName} offset {skipNum} rows fetch next {takeNum} rows only"; + var ret = await _newJitDapperRepository.GetListBySqlAsync(sql); + return ret; + } + + private async Task> GetEntityListFromToAsync(string tableName, string where, string orderFieldName, int skipNum, int takeNum) + { + string sql = $"select * from {tableName} where 1=1 {where} order by {orderFieldName} offset {skipNum} rows fetch next {takeNum} rows only"; + var ret = await _newJitDapperRepository.GetListBySqlAsync(sql); + return ret; + } + + + /// + /// 根据筛选条件获取实体列表 + /// + private async Task> QueryByConditionAsync(ImportRecordInputDto input, PagedAndSortedBase page) + { + PagedResultDto ret = new PagedResultDto(); + string where = GetWhere(input); + + ret.TotalCount = await GetEntityCountAsync("FisImportRecord", where); + + //计算分页 + int skipNum = page.SkipCount; + int takeNum = page.MaxResultCount; + + var lst = await GetEntityListFromToAsync("FisImportRecord", where, "HostSN", skipNum, takeNum); + ret.Items = lst; + return ret; + } + + #endregion + + + #region 公有方法 + /// + /// 根据筛选条件获取分页实体列表 + /// + /// 输入查询条件 + /// 返回符合条件的排序分页列表 + [HttpGet] + [UnitOfWork(false)] + [Route("list")] + public async Task> GetListAsync(ImportRecordInputDto input) + { + _logger.LogDebug(_errorMessagePrefix + "GetListAsync 进入"); + PagedResultDto ret = new PagedResultDto(); + try + { + ret = await QueryByConditionAsync(input, (PagedAndSortedBase)input); + return ret; + } + catch (Exception ex) + { + var msg = _errorMessagePrefix + "GetListAsync 执行出错:" + ex.Message; + _logger.LogError(msg); + return ret; + } + } + + + + /// + /// 按主键获取唯一实体 + /// + /// 主键 + /// 实体信息 + [HttpGet] + [Route("{id}")] + public async Task> GetAsync(Guid id) + { + _logger.LogDebug(_errorMessagePrefix + "GetAsync 进入"); + ObjectResultDto ret = new ObjectResultDto(); + try + { + ImportRecord sourceObj = await _importRecordRepository.GetAsync(id); + ImportRecordDto targetObj = ObjectMapper.Map(sourceObj); + ret.Item = targetObj; + return ret; + } + catch (Exception ex) + { + ret.Status = false; + ret.Message = _errorMessagePrefix + "GetAsync 执行出错:" + ex.Message; + _logger.LogError(ret.Message); + return ret; + } + } + + /// + /// 添加实体 + /// + /// 添加内容 + /// 执行成功返回真 + [HttpPost] + [UnitOfWork] + [Route("")]//create + public async Task> CreateAsync(ImportRecordCreateDto input) + { + _logger.LogDebug(_errorMessagePrefix + "CreateAsync 进入"); + ObjectResultDto ret = new ObjectResultDto(); + try + { + ImportRecord obj = ObjectMapper.Map(input); + ImportRecord obj2 = await _importRecordRepository.InsertAsync(obj); + ret.Item = obj2.Id; //返回添加对象的主键 + return ret; + } + catch (Exception ex) + { + ret.Status = false; + ret.Message = _errorMessagePrefix + "CreateAsync 执行出错:" + ex.Message; + _logger.LogError(ret.Message); + return ret; + } + } + + /// + /// 修改实体 + /// + /// 更新主键 + /// 修改内容 + /// 执行成功返回真 + [HttpPut] + [UnitOfWork] + [Route("{id}")]//update/ + public async Task UpdateAsync(Guid id, ImportRecordCreateDto input) + { + _logger.LogDebug(_errorMessagePrefix + "UpdateAsync 进入"); + ObjectResultDto ret = new ObjectResultDto(); + try + { + ImportRecord targetObj = await _importRecordRepository.GetAsync(id); + ObjectMapper.Map(input, targetObj); + await _importRecordRepository.UpdateAsync(targetObj); + return ret; + } + catch (Exception ex) + { + ret.Status = false; + ret.Message = _errorMessagePrefix + "UpdateAsync 执行出错:" + ex.Message; + _logger.LogError(ret.Message); + return ret; + } + } + + /// + /// 删除实体 + /// + /// 删除主键 + /// 执行成功返回真 + [UnitOfWork] + [HttpDelete] + [Route("{id}")]//delete/ + public async Task DeleteAsync(string id) + { + _logger.LogDebug(_errorMessagePrefix + "DeleteAsync 进入"); + ObjectResultDto ret = new ObjectResultDto(); + try + { + Guid guid = Guid.Parse(id); + await _importRecordRepository.DeleteAsync(guid); + + return ret; + } + catch (Exception ex) + { + ret.Status = false; + ret.Message = _errorMessagePrefix + "DeleteAsync 执行出错:" + ex.Message; + _logger.LogError(ret.Message); + return ret; + } + } + + /// + /// 导出信息 + /// + /// 导出查询条件 + /// 执行成功返回真 + [UnitOfWork(false)] + [HttpPost] + [Route("export")] + public async Task> ExportAsync(ImportRecordInputDto input) + { + _logger.LogDebug(_errorMessagePrefix + "ExportAsync 进入"); + ObjectResultDto ret = new ObjectResultDto(); + try + { + PagedResultDto pageLst = await QueryByConditionAsync(input, (PagedAndSortedBase)input); + var items = pageLst.Items.AsEnumerable().ToList(); + //将实体列表转换成excel文件流 + IExporter exporter = new ExcelExporter(); + byte[] byteArr = await exporter.ExportAsByteArray(items); + byteArr.ShouldNotBeNull(); + //将excel文件流保存到服务器端文件系统 + string fileName = string.Format("导入记录_{0}.xlsx", Guid.NewGuid().ToString()); + await _blobContainer.SaveAsync(fileName, byteArr); + + ret.Item = fileName; + return ret; + } + catch (Exception ex) + { + ret.Status = false; + ret.Message = _errorMessagePrefix + "ExportAsync 执行出错:" + ex.Message; + _logger.LogError(ret.Message); + return ret; + } + } + + /// + /// 导入 + /// + /// 导入文件 + /// 执行成功返回真 + [HttpPost] + [Route("import")] + [DisableRequestSizeLimit] + public virtual async Task ImportAsync([FromForm] IFormFileCollection files) + { + + _logger.LogDebug(_errorMessagePrefix + "ImportAsync 进入"); + ObjectResultDto ret = new ObjectResultDto(); + try + { + ImportResult impResult; + using (var memoryStream = new MemoryStream()) + { + //保存到内存流 + IFormFile file = files[0]; + await file.CopyToAsync(memoryStream); + memoryStream.Seek(0, SeekOrigin.Begin); + //StreamReader sr = new StreamReader(memoryStream, Encoding.Default); + IImporter importer = new ExcelImporter(); + impResult = await importer.Import(memoryStream); + if (impResult.HasError) + { + string rowErrStr = ""; + foreach (var rowErr in impResult.RowErrors) + { + string fieldErr = string.Concat(rowErr.FieldErrors.Select(itm => $"字段:{itm.Key},错误信息:{itm.Value}")); + rowErrStr += $"行号:{rowErr.RowIndex},{fieldErr}\r\n"; + } + string templateErrStr = ""; + foreach (var templateErr in impResult.TemplateErrors) + { + string errorLevel = templateErr.ErrorLevel == ErrorLevels.Error ? "错误" : "警告"; + templateErrStr += $"错误等级:{errorLevel},列名:{templateErr.ColumnName},需要列:{templateErr.RequireColumnName},错误消息:{templateErr.Message}\r\n"; + } + ret.Message = rowErrStr + templateErrStr; + ret.Status = false; + return ret; + } + } + var srcLst = impResult.Data.AsEnumerable().ToList(); + var tarLst = ObjectMapper.Map, List>(srcLst); + foreach (var tar in tarLst) + { + tar.CreatePerson = "导入"; + tar.CreateTime = ServerHelper.CurrentDateTime; + } + //插入“导入记录表” + await _importRecordRepository.InsertManyAsync(tarLst); + ret.Status = true; + return ret; + } + catch (Exception ex) + { + ret.Status = false; + ret.Message = _errorMessagePrefix + "ImportAsync 执行出错:" + ex.Message; + _logger.LogError(ret.Message); + return ret; + } + } + #endregion + } +} diff --git a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application/NewJitApplicationAutoMapperProfile.cs b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application/NewJitApplicationAutoMapperProfile.cs index 41ad3e4..af465c3 100644 --- a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application/NewJitApplicationAutoMapperProfile.cs +++ b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application/NewJitApplicationAutoMapperProfile.cs @@ -2,6 +2,8 @@ using Acme.BookStore.Books; using AutoMapper; using WY.NewJit.Books; +using WY.NewJit.EdiReceive.Dtos; +using WY.NewJit.EdiReceive.Entitys; using WY.NewJit.Extends; using WY.NewJit.MsgBaseData; using WY.NewJit.MsgCheck; @@ -109,6 +111,13 @@ namespace WY.NewJit CreateMap().ReverseMap(); #endregion + #region 导出记录 + CreateMap().ReverseMap(); + CreateMap().ReverseMap(); + CreateMap().ReverseMap(); + CreateMap().ReverseMap(); + #endregion + } } } diff --git a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application/WY.NewJit.Application.xml b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application/WY.NewJit.Application.xml index 5575954..cc6ce29 100644 --- a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application/WY.NewJit.Application.xml +++ b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application/WY.NewJit.Application.xml @@ -9,6 +9,121 @@ BookAppService使用IObjectMapper将Book对象转换为BookDto对象, 将CreateUpdateBookDto对象转换为Book对象 + + + 零件管理应用服务实现 + + + + + 零件仓储 + + + + + 日志 + + + + + Dapper仓储 + + + + + BLOB存储 + + + + + 字典领域服务 + + + + + 错误信息前缀 + + + + + 构造函数 + + + + + 取单表记录总数 + + + + + + + + 取单表当前页数据 + + + + + + + + + + + + 根据筛选条件获取实体列表 + + + + + 根据筛选条件获取分页实体列表 + + 输入查询条件 + 返回符合条件的排序分页列表 + + + + 按主键获取唯一实体 + + 主键 + 实体信息 + + + + 添加实体 + + 添加内容 + 执行成功返回真 + + + + 修改实体 + + 更新主键 + 修改内容 + 执行成功返回真 + + + + 删除实体 + + 删除主键 + 执行成功返回真 + + + + 导出信息 + + 导出查询条件 + 执行成功返回真 + + + + 导入 + + 导入文件 + 执行成功返回真 + 生产线权限管理应用服务实现 diff --git a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.DbMigrator/appsettings.json b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.DbMigrator/appsettings.json index 37417cb..cae4e39 100644 --- a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.DbMigrator/appsettings.json +++ b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.DbMigrator/appsettings.json @@ -1,6 +1,7 @@ { "ConnectionStrings": { - "Default": "Server=192.168.0.140;Database=NewJitPG_TEST_20230703;uid=sa;pwd=Microsoft2008" + "Default": "Server=dev.ccwin-in.com,6208;Database=NewJitPG_HQ_Temp;uid=sa;pwd=ChangkeTec@2021;" + /*"Default": "Server=192.168.0.213;Database=NewJitPG;uid=sa;pwd=Microsoft@2021"*/ /*"Default": "Server=LAPTOP-4TE7UPMR\\MYSQLSERVER;Database=NewJit;uid=sa;pwd=1"*/ }, diff --git a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain.Shared/Common/ExtMethod.cs b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain.Shared/Common/ExtMethod.cs index d27c8f0..74c4da3 100644 --- a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain.Shared/Common/ExtMethod.cs +++ b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain.Shared/Common/ExtMethod.cs @@ -321,6 +321,16 @@ namespace WY.NewJit.Common return p_val != null && p_val > 0; } + public static bool HasValue(this string p_val) + { + return (string.IsNullOrEmpty(p_val) == false); + } + + public static bool HasValue(this DateTime? p_val) + { + return (p_val != null); + } + //public static string Left(this string param, int length) //{ diff --git a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain.Shared/Common/SwaggerGroupConsts.cs b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain.Shared/Common/SwaggerGroupConsts.cs index 991c7cf..9edfc38 100644 --- a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain.Shared/Common/SwaggerGroupConsts.cs +++ b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain.Shared/Common/SwaggerGroupConsts.cs @@ -13,6 +13,7 @@ namespace WY.NewJit.Common public const string 基础数据 = "基础数据"; public const string 扩展 = "扩展"; public const string 报文打印 = "报文打印"; + public const string 报文接收 = "报文接收"; } } diff --git a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/EdiReceive/Entitys/ImportRecord.cs b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/EdiReceive/Entitys/ImportRecord.cs new file mode 100644 index 0000000..7ace273 --- /dev/null +++ b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/EdiReceive/Entitys/ImportRecord.cs @@ -0,0 +1,139 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Volo.Abp.Domain.Entities; +using Volo.Abp.Domain.Entities.Auditing; + +namespace WY.NewJit.EdiReceive.Entitys +{ + /// + /// 导入记录 + /// + public class ImportRecord : Entity + { + /// + /// 工厂 + /// + public virtual string Factory { get; set; } + + /// + /// 车位 + /// + public virtual string VehicleLocation { get; set; } + + /// + /// 工位 + /// + public virtual string WorkLocation { get; set; } + + /// + /// 底盘号 + /// + public virtual string Vin { get; set; } + + /// + /// 车身号 + /// + public virtual string VehicleBodyCode { get; set; } + + /// + /// 车型代码 + /// + public virtual string VehicleModelCode { get; set; } + + /// + /// 车型名称 + /// + public virtual string VehicleModelName { get; set; } + + /// + /// 车型描述 + /// + public virtual string VehicleModelDesc { get; set; } + + /// + /// 规格 + /// + public virtual string Spec { get; set; } + + /// + /// 规格说明 + /// + public virtual string SpecDesc { get; set; } + + /// + /// 类别 + /// + public virtual string Type { get; set; } + + /// + /// 涂装下线时间 + /// + public virtual DateTime? PaintOfflineTime { get; set; } + + /// + /// 总装上线时间 + /// + public virtual DateTime? OnlineTime { get; set; } + + /// + /// 内饰颜色 + /// + public virtual string InteriorColor { get; set; } + + /// + /// 外饰颜色 + /// + public virtual string ExteriorTrimmingColor { get; set; } + + /// + /// 序列号 + /// + public virtual string SerialNum { get; set; } + + /// + /// 流水号 + /// + public virtual int HostSN { get; set; } + + /// + /// 生产线:A/B + /// + public virtual string ProductLine { get; set; } + + /// + /// 目的 + /// + public virtual string Target { get; set; } + + /// + /// 备注 + /// + public virtual string Remark { get; set; } + + /// + /// 创建时间 + /// + public virtual DateTime? CreateTime { get; set; } + + /// + /// 创建人 + /// + public virtual string CreatePerson { get; set; } + + public virtual DateTime? ImportTime { get; set; } + + public virtual string ImportPerson { get; set; } + + public virtual string Remark2 { get; set; } + + public virtual string Remark3 { get; set; } + + public virtual string Remark4 { get; set; } + + public virtual string Remark5 { get; set; } + + } +} diff --git a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/EdiReceive/Entitys/ImportRecordHis.cs b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/EdiReceive/Entitys/ImportRecordHis.cs new file mode 100644 index 0000000..0be703b --- /dev/null +++ b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/EdiReceive/Entitys/ImportRecordHis.cs @@ -0,0 +1,139 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Volo.Abp.Domain.Entities; +using Volo.Abp.Domain.Entities.Auditing; + +namespace WY.NewJit.EdiReceive.Entitys +{ + /// + /// 导入记录 + /// + public class ImportRecordHis : Entity + { + /// + /// 工厂 + /// + public virtual string Factory { get; set; } + + /// + /// 车位 + /// + public virtual string VehicleLocation { get; set; } + + /// + /// 工位 + /// + public virtual string WorkLocation { get; set; } + + /// + /// 底盘号 + /// + public virtual string Vin { get; set; } + + /// + /// 车身号 + /// + public virtual string VehicleBodyCode { get; set; } + + /// + /// 车型代码 + /// + public virtual string VehicleModelCode { get; set; } + + /// + /// 车型名称 + /// + public virtual string VehicleModelName { get; set; } + + /// + /// 车型描述 + /// + public virtual string VehicleModelDesc { get; set; } + + /// + /// 规格 + /// + public virtual string Spec { get; set; } + + /// + /// 规格说明 + /// + public virtual string SpecDesc { get; set; } + + /// + /// 类别 + /// + public virtual string Type { get; set; } + + /// + /// 涂装下线时间 + /// + public virtual DateTime? PaintOfflineTime { get; set; } + + /// + /// 总装上线时间 + /// + public virtual DateTime? OnlineTime { get; set; } + + /// + /// 内饰颜色 + /// + public virtual string InteriorColor { get; set; } + + /// + /// 外饰颜色 + /// + public virtual string ExteriorTrimmingColor { get; set; } + + /// + /// 序列号 + /// + public virtual string SerialNum { get; set; } + + /// + /// 流水号 + /// + public virtual int HostSN { get; set; } + + /// + /// 生产线:A/B + /// + public virtual string ProductLine { get; set; } + + /// + /// 目的 + /// + public virtual string Target { get; set; } + + /// + /// 备注 + /// + public virtual string Remark { get; set; } + + /// + /// 创建时间 + /// + public virtual DateTime? CreateTime { get; set; } + + /// + /// 创建人 + /// + public virtual string CreatePerson { get; set; } + + public virtual DateTime? ImportTime { get; set; } + + public virtual string ImportPerson { get; set; } + + public virtual string Remark2 { get; set; } + + public virtual string Remark3 { get; set; } + + public virtual string Remark4 { get; set; } + + public virtual string Remark5 { get; set; } + + } +} diff --git a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/EdiReceive/Entitys/LastImportHostSN.cs b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/EdiReceive/Entitys/LastImportHostSN.cs new file mode 100644 index 0000000..8038136 --- /dev/null +++ b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/EdiReceive/Entitys/LastImportHostSN.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Volo.Abp.Domain.Entities; + +namespace WY.NewJit.EdiReceive.Entitys +{ + public class LastImportHostSN : Entity + { + public string ProductLineCode { get; set; } + + public int HostSN { get; set; } + + } +} diff --git a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/WY.NewJit.Domain.csproj b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/WY.NewJit.Domain.csproj index 7fda79f..55f387a 100644 --- a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/WY.NewJit.Domain.csproj +++ b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/WY.NewJit.Domain.csproj @@ -30,6 +30,7 @@ + diff --git a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/Migrations/20220701062532_Created_NewJit_Entity2022-07-01.Designer.cs b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/Migrations/20220701062532_Created_NewJit_Entity2022-07-01.Designer.cs deleted file mode 100644 index ab3450b..0000000 --- a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/Migrations/20220701062532_Created_NewJit_Entity2022-07-01.Designer.cs +++ /dev/null @@ -1,5757 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using WY.NewJit.EntityFrameworkCore; - -namespace WY.NewJit.Migrations -{ - [DbContext(typeof(NewJitMigrationsDbContext))] - [Migration("20220701062532_Created_NewJit_Entity2022-07-01")] - partial class Created_NewJit_Entity20220701 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("ProductVersion", "5.0.17") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicationName") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)") - .HasColumnName("ApplicationName"); - - b.Property("BrowserInfo") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)") - .HasColumnName("BrowserInfo"); - - b.Property("ClientId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ClientId"); - - b.Property("ClientIpAddress") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ClientIpAddress"); - - b.Property("ClientName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("ClientName"); - - b.Property("Comments") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("Comments"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CorrelationId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("CorrelationId"); - - b.Property("Exceptions") - .HasMaxLength(4000) - .HasColumnType("nvarchar(4000)") - .HasColumnName("Exceptions"); - - b.Property("ExecutionDuration") - .HasColumnType("int") - .HasColumnName("ExecutionDuration"); - - b.Property("ExecutionTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HttpMethod") - .HasMaxLength(16) - .HasColumnType("nvarchar(16)") - .HasColumnName("HttpMethod"); - - b.Property("HttpStatusCode") - .HasColumnType("int") - .HasColumnName("HttpStatusCode"); - - b.Property("ImpersonatorTenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("ImpersonatorTenantId"); - - b.Property("ImpersonatorUserId") - .HasColumnType("uniqueidentifier") - .HasColumnName("ImpersonatorUserId"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TenantName") - .HasColumnType("nvarchar(max)"); - - b.Property("Url") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("Url"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier") - .HasColumnName("UserId"); - - b.Property("UserName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("UserName"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "ExecutionTime"); - - b.HasIndex("TenantId", "UserId", "ExecutionTime"); - - b.ToTable("AbpAuditLogs"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AuditLogId") - .HasColumnType("uniqueidentifier") - .HasColumnName("AuditLogId"); - - b.Property("ExecutionDuration") - .HasColumnType("int") - .HasColumnName("ExecutionDuration"); - - b.Property("ExecutionTime") - .HasColumnType("datetime2") - .HasColumnName("ExecutionTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("MethodName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("MethodName"); - - b.Property("Parameters") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasColumnName("Parameters"); - - b.Property("ServiceName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("ServiceName"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("AuditLogId"); - - b.HasIndex("TenantId", "ServiceName", "MethodName", "ExecutionTime"); - - b.ToTable("AbpAuditLogActions"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AuditLogId") - .HasColumnType("uniqueidentifier") - .HasColumnName("AuditLogId"); - - b.Property("ChangeTime") - .HasColumnType("datetime2") - .HasColumnName("ChangeTime"); - - b.Property("ChangeType") - .HasColumnType("tinyint") - .HasColumnName("ChangeType"); - - b.Property("EntityId") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("EntityId"); - - b.Property("EntityTenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("EntityTypeFullName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("EntityTypeFullName"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("AuditLogId"); - - b.HasIndex("TenantId", "EntityTypeFullName", "EntityId"); - - b.ToTable("AbpEntityChanges"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("EntityChangeId") - .HasColumnType("uniqueidentifier"); - - b.Property("NewValue") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)") - .HasColumnName("NewValue"); - - b.Property("OriginalValue") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)") - .HasColumnName("OriginalValue"); - - b.Property("PropertyName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("PropertyName"); - - b.Property("PropertyTypeFullName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PropertyTypeFullName"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("EntityChangeId"); - - b.ToTable("AbpEntityPropertyChanges"); - }); - - modelBuilder.Entity("Volo.Abp.BackgroundJobs.BackgroundJobRecord", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAbandoned") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobArgs") - .IsRequired() - .HasMaxLength(1048576) - .HasColumnType("nvarchar(max)"); - - b.Property("JobName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("LastTryTime") - .HasColumnType("datetime2"); - - b.Property("NextTryTime") - .HasColumnType("datetime2"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("tinyint") - .HasDefaultValue((byte)15); - - b.Property("TryCount") - .ValueGeneratedOnAdd() - .HasColumnType("smallint") - .HasDefaultValue((short)0); - - b.HasKey("Id"); - - b.HasIndex("IsAbandoned", "NextTryTime"); - - b.ToTable("AbpBackgroundJobs"); - }); - - modelBuilder.Entity("Volo.Abp.FeatureManagement.FeatureValue", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProviderName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.HasKey("Id"); - - b.HasIndex("Name", "ProviderName", "ProviderKey"); - - b.ToTable("AbpFeatureValues"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityClaimType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Description") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsStatic") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("Regex") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("RegexDescription") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Required") - .HasColumnType("bit"); - - b.Property("ValueType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("AbpClaimTypes"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityLinkUser", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("SourceTenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("SourceUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TargetTenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("TargetUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("SourceUserId", "SourceTenantId", "TargetUserId", "TargetTenantId") - .IsUnique() - .HasFilter("[SourceTenantId] IS NOT NULL AND [TargetTenantId] IS NOT NULL"); - - b.ToTable("AbpLinkUsers"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityRole", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDefault") - .HasColumnType("bit") - .HasColumnName("IsDefault"); - - b.Property("IsPublic") - .HasColumnType("bit") - .HasColumnName("IsPublic"); - - b.Property("IsStatic") - .HasColumnType("bit") - .HasColumnName("IsStatic"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("NormalizedName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName"); - - b.ToTable("AbpRoles"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClaimType") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ClaimValue") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("RoleId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("RoleId"); - - b.ToTable("AbpRoleClaims"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentitySecurityLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Action") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("ApplicationName") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("BrowserInfo") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("ClientId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ClientIpAddress") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CorrelationId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Identity") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TenantName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "Action"); - - b.HasIndex("TenantId", "ApplicationName"); - - b.HasIndex("TenantId", "Identity"); - - b.HasIndex("TenantId", "UserId"); - - b.ToTable("AbpSecurityLogs"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUser", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccessFailedCount") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0) - .HasColumnName("AccessFailedCount"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("Email"); - - b.Property("EmailConfirmed") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("EmailConfirmed"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsExternal") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsExternal"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LockoutEnabled") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("LockoutEnabled"); - - b.Property("LockoutEnd") - .HasColumnType("datetimeoffset"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Name"); - - b.Property("NormalizedEmail") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("NormalizedEmail"); - - b.Property("NormalizedUserName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("NormalizedUserName"); - - b.Property("PasswordHash") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("PasswordHash"); - - b.Property("PhoneNumber") - .HasMaxLength(16) - .HasColumnType("nvarchar(16)") - .HasColumnName("PhoneNumber"); - - b.Property("PhoneNumberConfirmed") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("PhoneNumberConfirmed"); - - b.Property("SecurityStamp") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("SecurityStamp"); - - b.Property("Surname") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Surname"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TwoFactorEnabled") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("TwoFactorEnabled"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("UserName"); - - b.HasKey("Id"); - - b.HasIndex("Email"); - - b.HasIndex("NormalizedEmail"); - - b.HasIndex("NormalizedUserName"); - - b.HasIndex("UserName"); - - b.ToTable("AbpUsers"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClaimType") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ClaimValue") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("AbpUserClaims"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b => - { - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("LoginProvider") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProviderDisplayName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .IsRequired() - .HasMaxLength(196) - .HasColumnType("nvarchar(196)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("UserId", "LoginProvider"); - - b.HasIndex("LoginProvider", "ProviderKey"); - - b.ToTable("AbpUserLogins"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserOrganizationUnit", b => - { - b.Property("OrganizationUnitId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("OrganizationUnitId", "UserId"); - - b.HasIndex("UserId", "OrganizationUnitId"); - - b.ToTable("AbpUserOrganizationUnits"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b => - { - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RoleId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("UserId", "RoleId"); - - b.HasIndex("RoleId", "UserId"); - - b.ToTable("AbpUserRoles"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b => - { - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("LoginProvider") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Name") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("UserId", "LoginProvider", "Name"); - - b.ToTable("AbpUserTokens"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(95) - .HasColumnType("nvarchar(95)") - .HasColumnName("Code"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("DisplayName"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("Code"); - - b.HasIndex("ParentId"); - - b.ToTable("AbpOrganizationUnits"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnitRole", b => - { - b.Property("OrganizationUnitId") - .HasColumnType("uniqueidentifier"); - - b.Property("RoleId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("OrganizationUnitId", "RoleId"); - - b.HasIndex("RoleId", "OrganizationUnitId"); - - b.ToTable("AbpOrganizationUnitRoles"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResource", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AllowedAccessTokenSigningAlgorithms") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("DisplayName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ShowInDiscoveryDocument") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("IdentityServerApiResources"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceClaim", b => - { - b.Property("ApiResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("ApiResourceId", "Type"); - - b.ToTable("IdentityServerApiResourceClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceProperty", b => - { - b.Property("ApiResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Key") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("ApiResourceId", "Key", "Value"); - - b.ToTable("IdentityServerApiResourceProperties"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceScope", b => - { - b.Property("ApiResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Scope") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("ApiResourceId", "Scope"); - - b.ToTable("IdentityServerApiResourceScopes"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceSecret", b => - { - b.Property("ApiResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(4000) - .HasColumnType("nvarchar(4000)"); - - b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Expiration") - .HasColumnType("datetime2"); - - b.HasKey("ApiResourceId", "Type", "Value"); - - b.ToTable("IdentityServerApiResourceSecrets"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScope", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("DisplayName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Emphasize") - .HasColumnType("bit"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Required") - .HasColumnType("bit"); - - b.Property("ShowInDiscoveryDocument") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("IdentityServerApiScopes"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeClaim", b => - { - b.Property("ApiScopeId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("ApiScopeId", "Type"); - - b.ToTable("IdentityServerApiScopeClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeProperty", b => - { - b.Property("ApiScopeId") - .HasColumnType("uniqueidentifier"); - - b.Property("Key") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("ApiScopeId", "Key", "Value"); - - b.ToTable("IdentityServerApiScopeProperties"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.Client", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AbsoluteRefreshTokenLifetime") - .HasColumnType("int"); - - b.Property("AccessTokenLifetime") - .HasColumnType("int"); - - b.Property("AccessTokenType") - .HasColumnType("int"); - - b.Property("AllowAccessTokensViaBrowser") - .HasColumnType("bit"); - - b.Property("AllowOfflineAccess") - .HasColumnType("bit"); - - b.Property("AllowPlainTextPkce") - .HasColumnType("bit"); - - b.Property("AllowRememberConsent") - .HasColumnType("bit"); - - b.Property("AllowedIdentityTokenSigningAlgorithms") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("AlwaysIncludeUserClaimsInIdToken") - .HasColumnType("bit"); - - b.Property("AlwaysSendClientClaims") - .HasColumnType("bit"); - - b.Property("AuthorizationCodeLifetime") - .HasColumnType("int"); - - b.Property("BackChannelLogoutSessionRequired") - .HasColumnType("bit"); - - b.Property("BackChannelLogoutUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("ClientClaimsPrefix") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ClientId") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ClientName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ClientUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsentLifetime") - .HasColumnType("int"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("DeviceCodeLifetime") - .HasColumnType("int"); - - b.Property("EnableLocalLogin") - .HasColumnType("bit"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FrontChannelLogoutSessionRequired") - .HasColumnType("bit"); - - b.Property("FrontChannelLogoutUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("IdentityTokenLifetime") - .HasColumnType("int"); - - b.Property("IncludeJwtId") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LogoUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("PairWiseSubjectSalt") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ProtocolType") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RefreshTokenExpiration") - .HasColumnType("int"); - - b.Property("RefreshTokenUsage") - .HasColumnType("int"); - - b.Property("RequireClientSecret") - .HasColumnType("bit"); - - b.Property("RequireConsent") - .HasColumnType("bit"); - - b.Property("RequirePkce") - .HasColumnType("bit"); - - b.Property("RequireRequestObject") - .HasColumnType("bit"); - - b.Property("SlidingRefreshTokenLifetime") - .HasColumnType("int"); - - b.Property("UpdateAccessTokenClaimsOnRefresh") - .HasColumnType("bit"); - - b.Property("UserCodeType") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("UserSsoLifetime") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("ClientId"); - - b.ToTable("IdentityServerClients"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientClaim", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.HasKey("ClientId", "Type", "Value"); - - b.ToTable("IdentityServerClientClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientCorsOrigin", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Origin") - .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); - - b.HasKey("ClientId", "Origin"); - - b.ToTable("IdentityServerClientCorsOrigins"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientGrantType", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("GrantType") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.HasKey("ClientId", "GrantType"); - - b.ToTable("IdentityServerClientGrantTypes"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientIdPRestriction", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Provider") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("ClientId", "Provider"); - - b.ToTable("IdentityServerClientIdPRestrictions"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientPostLogoutRedirectUri", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("PostLogoutRedirectUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("ClientId", "PostLogoutRedirectUri"); - - b.ToTable("IdentityServerClientPostLogoutRedirectUris"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientProperty", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Key") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("ClientId", "Key", "Value"); - - b.ToTable("IdentityServerClientProperties"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientRedirectUri", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("RedirectUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("ClientId", "RedirectUri"); - - b.ToTable("IdentityServerClientRedirectUris"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientScope", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Scope") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("ClientId", "Scope"); - - b.ToTable("IdentityServerClientScopes"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientSecret", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(4000) - .HasColumnType("nvarchar(4000)"); - - b.Property("Description") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("Expiration") - .HasColumnType("datetime2"); - - b.HasKey("ClientId", "Type", "Value"); - - b.ToTable("IdentityServerClientSecrets"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Devices.DeviceFlowCodes", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ClientId") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Data") - .IsRequired() - .HasMaxLength(50000) - .HasColumnType("nvarchar(max)"); - - b.Property("Description") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Expiration") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("SessionId") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("SubjectId") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("UserCode") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.HasIndex("DeviceCode") - .IsUnique(); - - b.HasIndex("Expiration"); - - b.HasIndex("UserCode"); - - b.ToTable("IdentityServerDeviceFlowCodes"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Grants.PersistedGrant", b => - { - b.Property("Key") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ClientId") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsumedTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Data") - .IsRequired() - .HasMaxLength(50000) - .HasColumnType("nvarchar(max)"); - - b.Property("Description") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Expiration") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("SessionId") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("SubjectId") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Key"); - - b.HasIndex("Expiration"); - - b.HasIndex("SubjectId", "ClientId", "Type"); - - b.HasIndex("SubjectId", "SessionId", "Type"); - - b.ToTable("IdentityServerPersistedGrants"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("DisplayName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Emphasize") - .HasColumnType("bit"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Required") - .HasColumnType("bit"); - - b.Property("ShowInDiscoveryDocument") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("IdentityServerIdentityResources"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceClaim", b => - { - b.Property("IdentityResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("IdentityResourceId", "Type"); - - b.ToTable("IdentityServerIdentityResourceClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceProperty", b => - { - b.Property("IdentityResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Key") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("IdentityResourceId", "Key", "Value"); - - b.ToTable("IdentityServerIdentityResourceProperties"); - }); - - modelBuilder.Entity("Volo.Abp.PermissionManagement.PermissionGrant", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProviderName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("Name", "ProviderName", "ProviderKey"); - - b.ToTable("AbpPermissionGrants"); - }); - - modelBuilder.Entity("Volo.Abp.SettingManagement.Setting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProviderName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.HasKey("Id"); - - b.HasIndex("Name", "ProviderName", "ProviderKey"); - - b.ToTable("AbpSettings"); - }); - - modelBuilder.Entity("Volo.Abp.TenantManagement.Tenant", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Name"); - - b.ToTable("AbpTenants"); - }); - - modelBuilder.Entity("Volo.Abp.TenantManagement.TenantConnectionString", b => - { - b.Property("TenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.HasKey("TenantId", "Name"); - - b.ToTable("AbpTenantConnectionStrings"); - }); - - modelBuilder.Entity("WY.NewJit.Books.Book", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Price") - .HasColumnType("real"); - - b.Property("PublishDate") - .HasColumnType("datetime2"); - - b.Property("Type") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("FisBooks"); - }); - - modelBuilder.Entity("WY.NewJit.Commons.SequenceInfo", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("SequenceNum") - .HasColumnType("bigint"); - - b.Property("SequenceType") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("FisSequenceInfo"); - }); - - modelBuilder.Entity("WY.NewJit.Extends.MenBanPackingList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginHostSN") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginVin") - .HasColumnType("nvarchar(max)"); - - b.Property("BillLocation") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillSerialNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Capacity") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EndHostSN") - .HasColumnType("nvarchar(max)"); - - b.Property("EndVin") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MinOnlineTime") - .HasColumnType("datetime2"); - - b.Property("PartType") - .HasColumnType("nvarchar(max)"); - - b.Property("PrintDate") - .HasColumnType("datetime2"); - - b.Property("PrintType") - .HasColumnType("int"); - - b.Property("ProductLine") - .HasColumnType("nvarchar(max)"); - - b.Property("ProviderCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ReportStatus") - .HasColumnType("int"); - - b.Property("SortId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.ToTable("FisMenBanPackingList"); - }); - - modelBuilder.Entity("WY.NewJit.Extends.MenBanPackingRec", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BelowMaterialDescription") - .HasColumnType("nvarchar(max)"); - - b.Property("BelowSAPMaterialNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HostSN") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KNR") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("M100BillId") - .HasColumnType("uniqueidentifier"); - - b.Property("MenBanPackingListId") - .HasColumnType("uniqueidentifier"); - - b.Property("TopBoxPositionNum") - .HasColumnType("nvarchar(max)"); - - b.Property("TopMaterialDescription") - .HasColumnType("nvarchar(max)"); - - b.Property("TopSAPMaterialNum") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(max)"); - - b.Property("VehicleModel_DoorPlankCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MenBanPackingListId"); - - b.ToTable("FisMenBanPackingRec"); - }); - - modelBuilder.Entity("WY.NewJit.Extends.MenBanPackingRec2", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Column00") - .HasColumnType("nvarchar(max)"); - - b.Property("Column01") - .HasColumnType("nvarchar(max)"); - - b.Property("Column02") - .HasColumnType("nvarchar(max)"); - - b.Property("Column03") - .HasColumnType("nvarchar(max)"); - - b.Property("Column04") - .HasColumnType("nvarchar(max)"); - - b.Property("Column05") - .HasColumnType("nvarchar(max)"); - - b.Property("Column06") - .HasColumnType("nvarchar(max)"); - - b.Property("Column07") - .HasColumnType("nvarchar(max)"); - - b.Property("Column08") - .HasColumnType("nvarchar(max)"); - - b.Property("Column09") - .HasColumnType("nvarchar(max)"); - - b.Property("Column10") - .HasColumnType("nvarchar(max)"); - - b.Property("Column11") - .HasColumnType("nvarchar(max)"); - - b.Property("Column12") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.HasKey("Id"); - - b.ToTable("FisMenBanPackingRec2"); - }); - - modelBuilder.Entity("WY.NewJit.Extends.PaiGe.Fis.CUR_TB_BILL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccountDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CustId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DetailQty") - .HasColumnType("int"); - - b.Property("DockCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("FinishTime") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("GUID") - .HasColumnType("uniqueidentifier"); - - b.Property("GateCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("GateName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OperName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProjectId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SourceBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SourceBillNum2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SourceBillNum3") - .HasColumnType("nvarchar(max)"); - - b.Property("StartTime") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TransportType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TruckNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UID") - .HasColumnType("int"); - - b.Property("VendId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("FisCUR_TB_BILL"); - }); - - modelBuilder.Entity("WY.NewJit.Extends.PaiGe.Fis.CUR_TS_SORT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustBarCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CustPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DispatchDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Dock") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("FullBarCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("FyonNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LineNum") - .HasColumnType("int"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlanQty") - .HasColumnType("money"); - - b.Property("ProjectId") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("money"); - - b.Property("ReceiptQty") - .HasColumnType("money"); - - b.Property("Remark") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("SeqNum") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UID") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("bigint"); - - b.Property("VendId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("VinCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("FisCUR_TS_SORT_DETAIL"); - }); - - modelBuilder.Entity("WY.NewJit.Extends.PaiGe.Fis.HIS_TB_BILL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccountDate") - .HasColumnType("datetime2"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BillTime") - .HasColumnType("datetime2"); - - b.Property("CustId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DetailQty") - .HasColumnType("int"); - - b.Property("DockCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("FinishTime") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("GUID") - .HasColumnType("uniqueidentifier"); - - b.Property("GateCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("GateName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OperName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProjectId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SourceBillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SourceBillNum2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SourceBillNum3") - .HasColumnType("nvarchar(max)"); - - b.Property("StartTime") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TransportType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TruckNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UID") - .HasColumnType("int"); - - b.Property("VendId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("FisHIS_TB_BILL"); - }); - - modelBuilder.Entity("WY.NewJit.Extends.PaiGe.Fis.HIS_TS_SORT_DETAIL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BillNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustBarCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CustPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DispatchDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Dock") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("FullBarCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("FyonNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LineNum") - .HasColumnType("int"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlanQty") - .HasColumnType("money"); - - b.Property("ProjectId") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("money"); - - b.Property("ReceiptQty") - .HasColumnType("money"); - - b.Property("Remark") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("SeqNum") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("State") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UID") - .ValueGeneratedOnAddOrUpdate() - .HasColumnType("bigint"); - - b.Property("VendId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("VinCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("FisHIS_TS_SORT_DETAIL"); - }); - - modelBuilder.Entity("WY.NewJit.Extends.PaiGe.MaterialExt", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDescription") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription2") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialGroup") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialMemo") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialNum") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("MaterialType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialType2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialType3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RelationKey") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("VehicleModel") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("promo") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialNum") - .HasDatabaseName("IX_MaterialExt_MaterialNum"); - - b.HasIndex("MaterialType") - .HasDatabaseName("IX_MaterialExt_MaterialType"); - - b.HasIndex("MaterialType2") - .HasDatabaseName("IX_MaterialExt_MaterialType2"); - - b.HasIndex("MaterialType3") - .HasDatabaseName("IX_MaterialExt_MaterialType3"); - - b.HasIndex("RelationKey") - .HasDatabaseName("IX_MaterialExt_RelationKey"); - - b.HasIndex("VehicleModel") - .HasDatabaseName("IX_MaterialExt_VehicleModel"); - - b.ToTable("FisMaterialExt"); - }); - - modelBuilder.Entity("WY.NewJit.Extends.ProductLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ProductLineCode") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("ProductLineName") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("ProductLineCode") - .HasDatabaseName("IX_ProductLine_ProductLineCode"); - - b.ToTable("FisProductLine"); - }); - - modelBuilder.Entity("WY.NewJit.Extends.User2ProductLine", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ProductLineId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.ToTable("FisUser2ProductLine"); - }); - - modelBuilder.Entity("WY.NewJit.Extends.ZhuHuBanPackingList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginHostSN") - .HasColumnType("nvarchar(max)"); - - b.Property("BeginVin") - .HasColumnType("nvarchar(max)"); - - b.Property("BillLocation") - .HasColumnType("nvarchar(max)"); - - b.Property("BillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("BillSerialNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Capacity") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EndHostSN") - .HasColumnType("nvarchar(max)"); - - b.Property("EndVin") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MinOnlineTime") - .HasColumnType("datetime2"); - - b.Property("PartType") - .HasColumnType("nvarchar(max)"); - - b.Property("PrintDate") - .HasColumnType("datetime2"); - - b.Property("PrintType") - .HasColumnType("int"); - - b.Property("ProductLine") - .HasColumnType("nvarchar(max)"); - - b.Property("ProviderCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ReportStatus") - .HasColumnType("int"); - - b.Property("SortId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.ToTable("FisZhuHuBanPackingList"); - }); - - modelBuilder.Entity("WY.NewJit.Extends.ZhuHuBanPackingRec", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HostSN") - .HasColumnType("int"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KNR") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("M100BillId") - .HasColumnType("uniqueidentifier"); - - b.Property("MaterialDescription") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription2") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode2") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(max)"); - - b.Property("ZhuHuBanPackingListId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ZhuHuBanPackingListId"); - - b.ToTable("FisZhuHuBanPackingRec"); - }); - - modelBuilder.Entity("WY.NewJit.Extends.ZhuHuBanPackingRec2", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Column00") - .HasColumnType("nvarchar(max)"); - - b.Property("Column01") - .HasColumnType("nvarchar(max)"); - - b.Property("Column02") - .HasColumnType("nvarchar(max)"); - - b.Property("Column03") - .HasColumnType("nvarchar(max)"); - - b.Property("Column04") - .HasColumnType("nvarchar(max)"); - - b.Property("Column05") - .HasColumnType("nvarchar(max)"); - - b.Property("Column06") - .HasColumnType("nvarchar(max)"); - - b.Property("Column07") - .HasColumnType("nvarchar(max)"); - - b.Property("Column08") - .HasColumnType("nvarchar(max)"); - - b.Property("Column09") - .HasColumnType("nvarchar(max)"); - - b.Property("Column10") - .HasColumnType("nvarchar(max)"); - - b.Property("Column11") - .HasColumnType("nvarchar(max)"); - - b.Property("Column12") - .HasColumnType("nvarchar(max)"); - - b.Property("Column13") - .HasColumnType("nvarchar(max)"); - - b.Property("Column14") - .HasColumnType("nvarchar(max)"); - - b.Property("Column15") - .HasColumnType("nvarchar(max)"); - - b.Property("Column16") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.HasKey("Id"); - - b.ToTable("FisZhuHuBanPackingRec2"); - }); - - modelBuilder.Entity("WY.NewJit.MsgBaseData.AssemblyCfgErp", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("ErpAssemblyCode") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("ErpAssemblyName") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpAssemblyVersion") - .HasColumnType("int"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupCode") - .HasMaxLength(100) - .HasColumnType("varchar(100)"); - - b.Property("GroupId") - .HasColumnType("uniqueidentifier"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NewVersionId") - .HasColumnType("uniqueidentifier"); - - b.Property("RelationKey") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("VehicleModel") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.HasKey("Id"); - - b.ToTable("FisAssemblyCfgErp"); - }); - - modelBuilder.Entity("WY.NewJit.MsgBaseData.AssemblyCfgGroup", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupCode") - .HasMaxLength(100) - .HasColumnType("varchar(100)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsDisable") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("VehicleModel") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("FisAssemblyCfgGroup"); - }); - - modelBuilder.Entity("WY.NewJit.MsgBaseData.AssemblyCfgPart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCfgErpId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsKey") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("PartNum") - .HasColumnType("float"); - - b.HasKey("Id"); - - b.HasIndex("AssemblyCfgErpId"); - - b.HasIndex("PartCode") - .HasDatabaseName("IX_FisAssemblyCfgPart_PartCode"); - - b.ToTable("FisAssemblyCfgPart"); - }); - - modelBuilder.Entity("WY.NewJit.MsgBaseData.AssemblyCfgVehicle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyName") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsActivate") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("VehicleModelCode") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.HasKey("Id"); - - b.ToTable("FisAssemblyCfgVehicle"); - }); - - modelBuilder.Entity("WY.NewJit.MsgBaseData.AssemblyCfgVehicleChild", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyCfgVehicleId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("ErpAssemblyId") - .HasColumnType("uniqueidentifier"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.HasKey("Id"); - - b.HasIndex("AssemblyCfgVehicleId"); - - b.HasIndex("ErpAssemblyId") - .HasDatabaseName("IX_AssemblyCfgVehicleChild_ErpAssemblyId"); - - b.ToTable("FisAssemblyCfgVehicleChild"); - }); - - modelBuilder.Entity("WY.NewJit.MsgBaseData.DicItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DicItemCode") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("DicItemName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("DicItemSort1") - .HasColumnType("nvarchar(max)"); - - b.Property("DicItemSort2") - .HasColumnType("nvarchar(max)"); - - b.Property("DicItemSort3") - .HasColumnType("nvarchar(max)"); - - b.Property("DicItemSort4") - .HasColumnType("nvarchar(max)"); - - b.Property("DicItemSort5") - .HasColumnType("nvarchar(max)"); - - b.Property("DicTypeCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.HasKey("Id"); - - b.HasIndex("DicItemCode") - .HasDatabaseName("IX_DicItem_DicItemCode"); - - b.HasIndex("DicTypeCode") - .HasDatabaseName("IX_DicItem_DicTypeCode"); - - b.ToTable("FisDicItem"); - }); - - modelBuilder.Entity("WY.NewJit.MsgBaseData.DicType", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DicTypeCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DicTypeName") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.HasKey("Id"); - - b.HasIndex("DicTypeCode") - .HasDatabaseName("IX_DicType_DicTypeCode"); - - b.ToTable("FisDicType"); - }); - - modelBuilder.Entity("WY.NewJit.MsgBaseData.ExcludePartCfg", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("ExcludeReason") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("VehicleModelCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("FisExcludePartCfg"); - }); - - modelBuilder.Entity("WY.NewJit.MsgBaseData.GlobalSettings", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("RefreshMessageParseCache") - .HasMaxLength(1) - .HasColumnType("nvarchar(1)"); - - b.HasKey("Id"); - - b.ToTable("FisGlobalSettings"); - }); - - modelBuilder.Entity("WY.NewJit.MsgBaseData.LineSN", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LastPrintTime") - .HasColumnType("datetime2"); - - b.Property("PartType") - .HasColumnType("nvarchar(450)"); - - b.Property("ProductLine") - .HasColumnType("nvarchar(450)"); - - b.Property("ProductType") - .HasColumnType("int"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SN") - .HasColumnType("float"); - - b.HasKey("Id"); - - b.HasIndex("ProductType", "ProductLine", "PartType") - .IsUnique() - .HasFilter("[ProductLine] IS NOT NULL AND [PartType] IS NOT NULL"); - - b.ToTable("FisLineSN"); - }); - - modelBuilder.Entity("WY.NewJit.MsgBaseData.LogRemind", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LogDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LogStatus") - .HasColumnType("int"); - - b.Property("LogTitle") - .HasColumnType("nvarchar(max)"); - - b.Property("LogType") - .HasColumnType("int"); - - b.Property("SeriousLevel") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("FisLogRemind"); - }); - - modelBuilder.Entity("WY.NewJit.MsgBaseData.PartCfg", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsDisable") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("PartName") - .HasColumnType("nvarchar(max)"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartType2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartType3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RelationKey") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("PartCode") - .HasDatabaseName("IX_PartCfg_PartCode"); - - b.HasIndex("PartType") - .HasDatabaseName("IX_PartCfg_PartType"); - - b.HasIndex("PartType2") - .HasDatabaseName("IX_PartCfg_PartType2"); - - b.HasIndex("PartType3") - .HasDatabaseName("IX_PartCfg_PartType3"); - - b.ToTable("FisPartCfg"); - }); - - modelBuilder.Entity("WY.NewJit.MsgBaseData.PartSwitch", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveBeginTime") - .HasColumnType("datetime2"); - - b.Property("ActiveEndTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("SourcePartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TargetPartCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("FisPartSwitch"); - }); - - modelBuilder.Entity("WY.NewJit.MsgCheck.BillM100", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyID") - .HasColumnType("uniqueidentifier"); - - b.Property("BillStatus") - .HasColumnType("int"); - - b.Property("CanNotPrint") - .HasColumnType("bit"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HostSN") - .HasColumnType("int"); - - b.Property("HostSN2") - .HasColumnType("int"); - - b.Property("IsPartSwitch") - .HasColumnType("bit"); - - b.Property("KNR") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MessageFileReceiveID") - .HasColumnType("uniqueidentifier"); - - b.Property("NeedReplenishPrint") - .HasColumnType("int"); - - b.Property("OnlineTime") - .HasColumnType("datetime2"); - - b.Property("OperationTime") - .HasColumnType("datetime2"); - - b.Property("OperationType") - .HasColumnType("int"); - - b.Property("Operator") - .HasColumnType("nvarchar(max)"); - - b.Property("PrintBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("PrintTime") - .HasColumnType("datetime2"); - - b.Property("PrintTime2") - .HasColumnType("datetime2"); - - b.Property("ProductLine") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("ReceiveTime") - .HasColumnType("datetime2"); - - b.Property("SerialNum") - .HasColumnType("int"); - - b.Property("SerialNumStr") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("VIN") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("VehicleModelCode") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("HostSN") - .HasDatabaseName("IX_BillM100_HostSN2"); - - b.HasIndex("ProductLine") - .HasDatabaseName("IX_BillM100_ProductLine2"); - - b.HasIndex("SerialNum") - .HasDatabaseName("IX_BillM100_SerialNum"); - - b.HasIndex("SerialNumStr") - .HasDatabaseName("IX_BillM100_SerialNumStr2"); - - b.HasIndex("VIN") - .HasDatabaseName("IX_BillM100_VIN2"); - - b.ToTable("FisBillM100"); - }); - - modelBuilder.Entity("WY.NewJit.MsgCheck.BillM100Part", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillM100Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("PartNum") - .HasColumnType("float"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("PartType2") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("PartType3") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("BillM100Id"); - - b.HasIndex("PartCode") - .HasDatabaseName("IX_BillM100Part_PartCode2"); - - b.ToTable("FisBillM100Part"); - }); - - modelBuilder.Entity("WY.NewJit.MsgCheck.BillM110", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyID") - .HasColumnType("uniqueidentifier"); - - b.Property("BillStatus") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HostSN") - .HasColumnType("int"); - - b.Property("KNR") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MessageFileReceiveID") - .HasColumnType("uniqueidentifier"); - - b.Property("OnlineTime") - .HasColumnType("datetime2"); - - b.Property("ProductLine") - .HasColumnType("nvarchar(max)"); - - b.Property("ReceiveTime") - .HasColumnType("datetime2"); - - b.Property("SerialNum") - .HasColumnType("int"); - - b.Property("VIN") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("VehicleModelCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("VIN") - .HasDatabaseName("IX_BillM110_VIN3"); - - b.ToTable("FisBillM110"); - }); - - modelBuilder.Entity("WY.NewJit.MsgCheck.BillM110Part", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillM110Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("PartNum") - .HasColumnType("float"); - - b.HasKey("Id"); - - b.HasIndex("BillM110Id"); - - b.HasIndex("PartCode") - .HasDatabaseName("IX_BillM110Part_PartCode3"); - - b.ToTable("FisBillM110Part"); - }); - - modelBuilder.Entity("WY.NewJit.MsgCheck.BillR100", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyID") - .HasColumnType("uniqueidentifier"); - - b.Property("BillStatus") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HostSN") - .HasColumnType("int"); - - b.Property("IsPartSwitch") - .HasColumnType("bit"); - - b.Property("KNR") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MessageFileReceiveID") - .HasColumnType("uniqueidentifier"); - - b.Property("OnlineTime") - .HasColumnType("datetime2"); - - b.Property("PrintTime") - .HasColumnType("datetime2"); - - b.Property("ProductLine") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("ReceiveTime") - .HasColumnType("datetime2"); - - b.Property("SerialNum") - .HasColumnType("int"); - - b.Property("SerialNumStr") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("VehicleModelCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("HostSN") - .HasDatabaseName("IX_BillR100_HostSN1"); - - b.HasIndex("KNR") - .HasDatabaseName("IX_BillR100_KNR"); - - b.HasIndex("ProductLine") - .HasDatabaseName("IX_BillR100_ProductLine1"); - - b.HasIndex("SerialNumStr") - .HasDatabaseName("IX_BillR100_SerialNumStr1"); - - b.ToTable("FisBillR100"); - }); - - modelBuilder.Entity("WY.NewJit.MsgCheck.BillR100Part", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillR100Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("PartNum") - .HasColumnType("float"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("PartType2") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("PartType3") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BillR100Id"); - - b.HasIndex("PartCode") - .HasDatabaseName("IX_BillR100Part_PartCode1"); - - b.ToTable("FisBillR100Part"); - }); - - modelBuilder.Entity("WY.NewJit.MsgCheck.RepeatM100", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyID") - .HasColumnType("uniqueidentifier"); - - b.Property("BillStatus") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HostSN") - .HasColumnType("int"); - - b.Property("KNR") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MessageFileReceiveID") - .HasColumnType("uniqueidentifier"); - - b.Property("OnlineTime") - .HasColumnType("datetime2"); - - b.Property("ProductLine") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("ReceiveTime") - .HasColumnType("datetime2"); - - b.Property("SerialNum") - .HasColumnType("int"); - - b.Property("VIN") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("VehicleModelCode") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("HostSN") - .HasDatabaseName("IX_RepeatM100_HostSN"); - - b.HasIndex("KNR") - .HasDatabaseName("IX_RepeatM100_KNR"); - - b.HasIndex("ProductLine") - .HasDatabaseName("IX_RepeatM100_ProductLine"); - - b.HasIndex("VIN") - .HasDatabaseName("IX_RepeatM100_VIN"); - - b.ToTable("FisRepeatM100"); - }); - - modelBuilder.Entity("WY.NewJit.MsgCheck.RepeatM100Part", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("PartNum") - .HasColumnType("float"); - - b.Property("RepeatM100Id") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("PartCode") - .HasDatabaseName("IX_RepeatM100Part_PartCode"); - - b.HasIndex("RepeatM100Id"); - - b.ToTable("FisRepeatM100Part"); - }); - - modelBuilder.Entity("WY.NewJit.MsgCheck.RepeatM110", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillStatus") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HostSN") - .HasColumnType("int"); - - b.Property("KNR") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MessageFileReceiveID") - .HasColumnType("uniqueidentifier"); - - b.Property("OnlineTime") - .HasColumnType("datetime2"); - - b.Property("ProductLine") - .HasColumnType("nvarchar(max)"); - - b.Property("ReceiveTime") - .HasColumnType("datetime2"); - - b.Property("VIN") - .HasColumnType("nvarchar(max)"); - - b.Property("VehicleModelCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("FisRepeatM110"); - }); - - modelBuilder.Entity("WY.NewJit.MsgCheck.RepeatM110Part", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartNum") - .HasColumnType("float"); - - b.Property("RepeatM110Id") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("RepeatM110Id"); - - b.ToTable("FisRepeatM110Part"); - }); - - modelBuilder.Entity("WY.NewJit.MsgCheck.RepeatR100", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AssemblyID") - .HasColumnType("uniqueidentifier"); - - b.Property("BillStatus") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HostSN") - .HasColumnType("int"); - - b.Property("KNR") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MessageFileReceiveID") - .HasColumnType("uniqueidentifier"); - - b.Property("OnlineTime") - .HasColumnType("datetime2"); - - b.Property("ProductLine") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("ReceiveTime") - .HasColumnType("datetime2"); - - b.Property("VehicleModelCode") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("HostSN") - .HasDatabaseName("IX_RepeatR100_HostSN"); - - b.HasIndex("KNR") - .HasDatabaseName("IX_RepeatR100_KNR"); - - b.HasIndex("ProductLine") - .HasDatabaseName("IX_RepeatR100_ProductLine"); - - b.ToTable("FisRepeatR100"); - }); - - modelBuilder.Entity("WY.NewJit.MsgCheck.RepeatR100Part", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("PartNum") - .HasColumnType("float"); - - b.Property("RepeatR100Id") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("PartCode") - .HasDatabaseName("IX_RepeatR100Part_PartCode"); - - b.HasIndex("RepeatR100Id"); - - b.ToTable("FisRepeatR100Part"); - }); - - modelBuilder.Entity("WY.NewJit.MsgCheck.UnknownAssembly", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillID") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PartNum") - .HasColumnType("float"); - - b.Property("ScanPoint") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("FisUnknownAssembly"); - }); - - modelBuilder.Entity("WY.NewJit.MsgCheck.UnknownAssemblyPart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("PartNum") - .HasColumnType("float"); - - b.Property("UnknownAssemblyId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("PartCode") - .HasDatabaseName("IX_UnknownAssemblyPart_PartCode"); - - b.HasIndex("UnknownAssemblyId"); - - b.ToTable("FisUnknownAssemblyPart"); - }); - - modelBuilder.Entity("WY.NewJit.MsgConversion.BillSortCfg", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillName") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FileContentKeyword") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MessageVersionCfgId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("MessageVersionCfgId"); - - b.ToTable("FisBillSortCfg"); - }); - - modelBuilder.Entity("WY.NewJit.MsgConversion.MessageVersionCfg", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileNameKeyword") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("FisMessageVersionCfg"); - }); - - modelBuilder.Entity("WY.NewJit.MsgTransmission.MessageReceive", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ErrorCount") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastUpdateTime") - .HasColumnType("datetime2"); - - b.Property("MessageContent") - .HasColumnType("nvarchar(max)"); - - b.Property("MessageFileName") - .HasColumnType("nvarchar(max)"); - - b.Property("ReceiveStatus") - .HasColumnType("int"); - - b.Property("ReceiveTime") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.ToTable("FisMessageReceive"); - }); - - modelBuilder.Entity("WY.NewJit.MsgTransmission.MessageReceiveArchive", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillHostSN") - .HasColumnType("int"); - - b.Property("BillOnlineTime") - .HasColumnType("datetime2"); - - b.Property("BillType") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastUpdateTime") - .HasColumnType("datetime2"); - - b.Property("MessageContent") - .HasColumnType("nvarchar(max)"); - - b.Property("MessageFileName") - .HasColumnType("nvarchar(max)"); - - b.Property("MessageReceiveId") - .HasColumnType("uniqueidentifier"); - - b.Property("ReceiveStatus") - .HasColumnType("int"); - - b.Property("ReceiveTime") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.ToTable("FisMessageReceiveArchive"); - }); - - modelBuilder.Entity("WY.NewJit.MsgTransmission.TransmissionModeCfg", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsApply") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("TransmissionModeContent") - .HasColumnType("nvarchar(max)"); - - b.Property("TransmissionModeType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("FisTransmissionModeCfg"); - }); - - modelBuilder.Entity("WY.NewJit.TianHe.NotMatchTempBill", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("NotMatchBillId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.ToTable("FisNotMatchTempBill"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b => - { - b.HasOne("Volo.Abp.AuditLogging.AuditLog", null) - .WithMany("Actions") - .HasForeignKey("AuditLogId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => - { - b.HasOne("Volo.Abp.AuditLogging.AuditLog", null) - .WithMany("EntityChanges") - .HasForeignKey("AuditLogId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b => - { - b.HasOne("Volo.Abp.AuditLogging.EntityChange", null) - .WithMany("PropertyChanges") - .HasForeignKey("EntityChangeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b => - { - b.HasOne("Volo.Abp.Identity.IdentityRole", null) - .WithMany("Claims") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b => - { - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("Claims") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b => - { - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("Logins") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserOrganizationUnit", b => - { - b.HasOne("Volo.Abp.Identity.OrganizationUnit", null) - .WithMany() - .HasForeignKey("OrganizationUnitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("OrganizationUnits") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b => - { - b.HasOne("Volo.Abp.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b => - { - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("Tokens") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b => - { - b.HasOne("Volo.Abp.Identity.OrganizationUnit", null) - .WithMany() - .HasForeignKey("ParentId"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnitRole", b => - { - b.HasOne("Volo.Abp.Identity.OrganizationUnit", null) - .WithMany("Roles") - .HasForeignKey("OrganizationUnitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Volo.Abp.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceClaim", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiResource", null) - .WithMany("UserClaims") - .HasForeignKey("ApiResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceProperty", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiResource", null) - .WithMany("Properties") - .HasForeignKey("ApiResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceScope", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiResource", null) - .WithMany("Scopes") - .HasForeignKey("ApiResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceSecret", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiResource", null) - .WithMany("Secrets") - .HasForeignKey("ApiResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeClaim", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiScopes.ApiScope", null) - .WithMany("UserClaims") - .HasForeignKey("ApiScopeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeProperty", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiScopes.ApiScope", null) - .WithMany("Properties") - .HasForeignKey("ApiScopeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientClaim", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("Claims") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientCorsOrigin", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("AllowedCorsOrigins") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientGrantType", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("AllowedGrantTypes") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientIdPRestriction", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("IdentityProviderRestrictions") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientPostLogoutRedirectUri", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("PostLogoutRedirectUris") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientProperty", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("Properties") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientRedirectUri", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("RedirectUris") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientScope", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("AllowedScopes") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientSecret", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("ClientSecrets") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceClaim", b => - { - b.HasOne("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", null) - .WithMany("UserClaims") - .HasForeignKey("IdentityResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceProperty", b => - { - b.HasOne("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", null) - .WithMany("Properties") - .HasForeignKey("IdentityResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.TenantManagement.TenantConnectionString", b => - { - b.HasOne("Volo.Abp.TenantManagement.Tenant", null) - .WithMany("ConnectionStrings") - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("WY.NewJit.Extends.MenBanPackingRec", b => - { - b.HasOne("WY.NewJit.Extends.MenBanPackingList", null) - .WithMany("Details") - .HasForeignKey("MenBanPackingListId"); - }); - - modelBuilder.Entity("WY.NewJit.Extends.ZhuHuBanPackingRec", b => - { - b.HasOne("WY.NewJit.Extends.ZhuHuBanPackingList", null) - .WithMany("Details") - .HasForeignKey("ZhuHuBanPackingListId"); - }); - - modelBuilder.Entity("WY.NewJit.MsgBaseData.AssemblyCfgPart", b => - { - b.HasOne("WY.NewJit.MsgBaseData.AssemblyCfgErp", null) - .WithMany("Details") - .HasForeignKey("AssemblyCfgErpId"); - }); - - modelBuilder.Entity("WY.NewJit.MsgBaseData.AssemblyCfgVehicleChild", b => - { - b.HasOne("WY.NewJit.MsgBaseData.AssemblyCfgVehicle", null) - .WithMany("AssemblyCfgVehicleChilds") - .HasForeignKey("AssemblyCfgVehicleId"); - }); - - modelBuilder.Entity("WY.NewJit.MsgCheck.BillM100Part", b => - { - b.HasOne("WY.NewJit.MsgCheck.BillM100", null) - .WithMany("BillM100Parts") - .HasForeignKey("BillM100Id"); - }); - - modelBuilder.Entity("WY.NewJit.MsgCheck.BillM110Part", b => - { - b.HasOne("WY.NewJit.MsgCheck.BillM110", null) - .WithMany("BillM110Parts") - .HasForeignKey("BillM110Id"); - }); - - modelBuilder.Entity("WY.NewJit.MsgCheck.BillR100Part", b => - { - b.HasOne("WY.NewJit.MsgCheck.BillR100", null) - .WithMany("BillR100Parts") - .HasForeignKey("BillR100Id"); - }); - - modelBuilder.Entity("WY.NewJit.MsgCheck.RepeatM100Part", b => - { - b.HasOne("WY.NewJit.MsgCheck.RepeatM100", null) - .WithMany("M100RepeatParts") - .HasForeignKey("RepeatM100Id"); - }); - - modelBuilder.Entity("WY.NewJit.MsgCheck.RepeatM110Part", b => - { - b.HasOne("WY.NewJit.MsgCheck.RepeatM110", null) - .WithMany("M110RepeatParts") - .HasForeignKey("RepeatM110Id"); - }); - - modelBuilder.Entity("WY.NewJit.MsgCheck.RepeatR100Part", b => - { - b.HasOne("WY.NewJit.MsgCheck.RepeatR100", null) - .WithMany("R100RepeatParts") - .HasForeignKey("RepeatR100Id"); - }); - - modelBuilder.Entity("WY.NewJit.MsgCheck.UnknownAssemblyPart", b => - { - b.HasOne("WY.NewJit.MsgCheck.UnknownAssembly", null) - .WithMany("UnknownAssemblyParts") - .HasForeignKey("UnknownAssemblyId"); - }); - - modelBuilder.Entity("WY.NewJit.MsgConversion.BillSortCfg", b => - { - b.HasOne("WY.NewJit.MsgConversion.MessageVersionCfg", null) - .WithMany("Details") - .HasForeignKey("MessageVersionCfgId"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b => - { - b.Navigation("Actions"); - - b.Navigation("EntityChanges"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => - { - b.Navigation("PropertyChanges"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityRole", b => - { - b.Navigation("Claims"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUser", b => - { - b.Navigation("Claims"); - - b.Navigation("Logins"); - - b.Navigation("OrganizationUnits"); - - b.Navigation("Roles"); - - b.Navigation("Tokens"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b => - { - b.Navigation("Roles"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResource", b => - { - b.Navigation("Properties"); - - b.Navigation("Scopes"); - - b.Navigation("Secrets"); - - b.Navigation("UserClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScope", b => - { - b.Navigation("Properties"); - - b.Navigation("UserClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.Client", b => - { - b.Navigation("AllowedCorsOrigins"); - - b.Navigation("AllowedGrantTypes"); - - b.Navigation("AllowedScopes"); - - b.Navigation("Claims"); - - b.Navigation("ClientSecrets"); - - b.Navigation("IdentityProviderRestrictions"); - - b.Navigation("PostLogoutRedirectUris"); - - b.Navigation("Properties"); - - b.Navigation("RedirectUris"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", b => - { - b.Navigation("Properties"); - - b.Navigation("UserClaims"); - }); - - modelBuilder.Entity("Volo.Abp.TenantManagement.Tenant", b => - { - b.Navigation("ConnectionStrings"); - }); - - modelBuilder.Entity("WY.NewJit.Extends.MenBanPackingList", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("WY.NewJit.Extends.ZhuHuBanPackingList", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("WY.NewJit.MsgBaseData.AssemblyCfgErp", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("WY.NewJit.MsgBaseData.AssemblyCfgVehicle", b => - { - b.Navigation("AssemblyCfgVehicleChilds"); - }); - - modelBuilder.Entity("WY.NewJit.MsgCheck.BillM100", b => - { - b.Navigation("BillM100Parts"); - }); - - modelBuilder.Entity("WY.NewJit.MsgCheck.BillM110", b => - { - b.Navigation("BillM110Parts"); - }); - - modelBuilder.Entity("WY.NewJit.MsgCheck.BillR100", b => - { - b.Navigation("BillR100Parts"); - }); - - modelBuilder.Entity("WY.NewJit.MsgCheck.RepeatM100", b => - { - b.Navigation("M100RepeatParts"); - }); - - modelBuilder.Entity("WY.NewJit.MsgCheck.RepeatM110", b => - { - b.Navigation("M110RepeatParts"); - }); - - modelBuilder.Entity("WY.NewJit.MsgCheck.RepeatR100", b => - { - b.Navigation("R100RepeatParts"); - }); - - modelBuilder.Entity("WY.NewJit.MsgCheck.UnknownAssembly", b => - { - b.Navigation("UnknownAssemblyParts"); - }); - - modelBuilder.Entity("WY.NewJit.MsgConversion.MessageVersionCfg", b => - { - b.Navigation("Details"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/Migrations/20220701062532_Created_NewJit_Entity2022-07-01.cs b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/Migrations/20220701062532_Created_NewJit_Entity2022-07-01.cs deleted file mode 100644 index fd2fc53..0000000 --- a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/Migrations/20220701062532_Created_NewJit_Entity2022-07-01.cs +++ /dev/null @@ -1,338 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace WY.NewJit.Migrations -{ - public partial class Created_NewJit_Entity20220701 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - //migrationBuilder.AddColumn( - // name: "MinOnlineTime", - // table: "FisZhuHuBanPackingList", - // type: "datetime2", - // nullable: true); - - //migrationBuilder.AddColumn( - // name: "ErrorCount", - // table: "FisMessageReceive", - // type: "int", - // nullable: true); - - //migrationBuilder.AddColumn( - // name: "ErrorMessage", - // table: "FisMessageReceive", - // type: "nvarchar(max)", - // nullable: true); - - //migrationBuilder.AddColumn( - // name: "LastUpdateTime", - // table: "FisMessageReceive", - // type: "datetime2", - // nullable: true); - - //migrationBuilder.AddColumn( - // name: "MinOnlineTime", - // table: "FisMenBanPackingList", - // type: "datetime2", - // nullable: true); - - //migrationBuilder.AddColumn( - // name: "IsPartSwitch", - // table: "FisBillR100", - // type: "bit", - // nullable: true); - - //migrationBuilder.AddColumn( - // name: "HostSN2", - // table: "FisBillM100", - // type: "int", - // nullable: true); - - //migrationBuilder.AddColumn( - // name: "IsPartSwitch", - // table: "FisBillM100", - // type: "bit", - // nullable: true); - - //migrationBuilder.AddColumn( - // name: "NeedReplenishPrint", - // table: "FisBillM100", - // type: "int", - // nullable: true); - - //migrationBuilder.AddColumn( - // name: "PrintTime2", - // table: "FisBillM100", - // type: "datetime2", - // nullable: true); - - //migrationBuilder.AlterColumn( - // name: "GroupCode", - // table: "FisAssemblyCfgErp", - // type: "varchar(100)", - // maxLength: 100, - // nullable: true, - // oldClrType: typeof(string), - // oldType: "varchar(50)", - // oldMaxLength: 50, - // oldNullable: true); - - //migrationBuilder.AddColumn( - // name: "GroupId", - // table: "FisAssemblyCfgErp", - // type: "uniqueidentifier", - // nullable: false, - // defaultValue: new Guid("00000000-0000-0000-0000-000000000000")); - - //migrationBuilder.CreateTable( - // name: "FisAssemblyCfgGroup", - // columns: table => new - // { - // Id = table.Column(type: "uniqueidentifier", nullable: false), - // GroupCode = table.Column(type: "varchar(100)", maxLength: 100, nullable: true), - // VehicleModel = table.Column(type: "nvarchar(max)", nullable: true), - // IsDisable = table.Column(type: "bit", nullable: false), - // ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - // ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - // CreationTime = table.Column(type: "datetime2", nullable: false), - // CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - // LastModificationTime = table.Column(type: "datetime2", nullable: true), - // LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - // IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - // DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - // DeletionTime = table.Column(type: "datetime2", nullable: true) - // }, - // constraints: table => - // { - // table.PrimaryKey("PK_FisAssemblyCfgGroup", x => x.Id); - // }); - - migrationBuilder.CreateTable( - name: "FisCUR_TB_BILL", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - UID = table.Column(type: "int", nullable: false), - BillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - State = table.Column(type: "int", nullable: false), - SourceBillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SourceBillNum2 = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SourceBillNum3 = table.Column(type: "nvarchar(max)", nullable: true), - BillTime = table.Column(type: "datetime2", nullable: false), - StartTime = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - FinishTime = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - OperName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - DetailQty = table.Column(type: "int", nullable: false), - VendId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CustId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ProjectId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - TransportType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - TruckNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - GateCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - GateName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - DockCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - AccountDate = table.Column(type: "datetime2", nullable: true), - GUID = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_FisCUR_TB_BILL", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "FisCUR_TS_SORT_DETAIL", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - UID = table.Column(type: "bigint", nullable: false), - BillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - LineNum = table.Column(type: "int", nullable: false), - VinCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SeqNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - PartCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - BarCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CustPartCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ProjectId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - FyonNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - VendId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Dock = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - DispatchDate = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - State = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Remark = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - PlanQty = table.Column(type: "money", nullable: false), - Qty = table.Column(type: "money", nullable: false), - CustBarCode = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - ReceiptQty = table.Column(type: "money", nullable: false), - FullBarCode = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_FisCUR_TS_SORT_DETAIL", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "FisHIS_TB_BILL", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - UID = table.Column(type: "int", nullable: false), - BillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - State = table.Column(type: "int", nullable: false), - SourceBillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SourceBillNum2 = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SourceBillNum3 = table.Column(type: "nvarchar(max)", nullable: true), - BillTime = table.Column(type: "datetime2", nullable: false), - StartTime = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - FinishTime = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - OperName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - DetailQty = table.Column(type: "int", nullable: false), - VendId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CustId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ProjectId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - TransportType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - TruckNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - GateCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - GateName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - DockCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - AccountDate = table.Column(type: "datetime2", nullable: true), - GUID = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_FisHIS_TB_BILL", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "FisHIS_TS_SORT_DETAIL", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - UID = table.Column(type: "bigint", nullable: false), - BillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - LineNum = table.Column(type: "int", nullable: false), - VinCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SeqNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - PartCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - BarCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CustPartCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ProjectId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - FyonNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - VendId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Dock = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - DispatchDate = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - State = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Remark = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - PlanQty = table.Column(type: "money", nullable: false), - Qty = table.Column(type: "money", nullable: false), - CustBarCode = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - ReceiptQty = table.Column(type: "money", nullable: false), - FullBarCode = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_FisHIS_TS_SORT_DETAIL", x => x.Id); - }); - - //migrationBuilder.CreateTable( - // name: "FisMessageReceiveArchive", - // columns: table => new - // { - // Id = table.Column(type: "uniqueidentifier", nullable: false), - // MessageFileName = table.Column(type: "nvarchar(max)", nullable: true), - // MessageContent = table.Column(type: "nvarchar(max)", nullable: true), - // ReceiveStatus = table.Column(type: "int", nullable: false), - // ReceiveTime = table.Column(type: "datetime2", nullable: false), - // LastUpdateTime = table.Column(type: "datetime2", nullable: true), - // MessageReceiveId = table.Column(type: "uniqueidentifier", nullable: true), - // BillType = table.Column(type: "nvarchar(max)", nullable: true), - // BillOnlineTime = table.Column(type: "datetime2", nullable: true), - // BillHostSN = table.Column(type: "int", nullable: true), - // ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - // ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true) - // }, - // constraints: table => - // { - // table.PrimaryKey("PK_FisMessageReceiveArchive", x => x.Id); - // }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - //migrationBuilder.DropTable( - // name: "FisAssemblyCfgGroup"); - - migrationBuilder.DropTable( - name: "FisCUR_TB_BILL"); - - migrationBuilder.DropTable( - name: "FisCUR_TS_SORT_DETAIL"); - - migrationBuilder.DropTable( - name: "FisHIS_TB_BILL"); - - migrationBuilder.DropTable( - name: "FisHIS_TS_SORT_DETAIL"); - - //migrationBuilder.DropTable( - // name: "FisMessageReceiveArchive"); - - //migrationBuilder.DropColumn( - // name: "MinOnlineTime", - // table: "FisZhuHuBanPackingList"); - - //migrationBuilder.DropColumn( - // name: "ErrorCount", - // table: "FisMessageReceive"); - - //migrationBuilder.DropColumn( - // name: "ErrorMessage", - // table: "FisMessageReceive"); - - //migrationBuilder.DropColumn( - // name: "LastUpdateTime", - // table: "FisMessageReceive"); - - //migrationBuilder.DropColumn( - // name: "MinOnlineTime", - // table: "FisMenBanPackingList"); - - //migrationBuilder.DropColumn( - // name: "IsPartSwitch", - // table: "FisBillR100"); - - //migrationBuilder.DropColumn( - // name: "HostSN2", - // table: "FisBillM100"); - - //migrationBuilder.DropColumn( - // name: "IsPartSwitch", - // table: "FisBillM100"); - - //migrationBuilder.DropColumn( - // name: "NeedReplenishPrint", - // table: "FisBillM100"); - - //migrationBuilder.DropColumn( - // name: "PrintTime2", - // table: "FisBillM100"); - - //migrationBuilder.DropColumn( - // name: "GroupId", - // table: "FisAssemblyCfgErp"); - - //migrationBuilder.AlterColumn( - // name: "GroupCode", - // table: "FisAssemblyCfgErp", - // type: "varchar(50)", - // maxLength: 50, - // nullable: true, - // oldClrType: typeof(string), - // oldType: "varchar(100)", - // oldMaxLength: 100, - // oldNullable: true); - } - } -} diff --git a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/Migrations/20220701064724_Created_NewJit_Entity2022-07-01_2.cs b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/Migrations/20220701064724_Created_NewJit_Entity2022-07-01_2.cs deleted file mode 100644 index b9a7cae..0000000 --- a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/Migrations/20220701064724_Created_NewJit_Entity2022-07-01_2.cs +++ /dev/null @@ -1,233 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace WY.NewJit.Migrations -{ - public partial class Created_NewJit_Entity20220701_2 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "VinCode", - table: "FisHIS_TS_SORT_DETAIL", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PartCode", - table: "FisHIS_TS_SORT_DETAIL", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FullBarCode", - table: "FisHIS_TS_SORT_DETAIL", - type: "nvarchar(200)", - maxLength: 200, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(200)", - oldMaxLength: 200, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "BillNum", - table: "FisHIS_TS_SORT_DETAIL", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "BillNum", - table: "FisHIS_TB_BILL", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "VinCode", - table: "FisCUR_TS_SORT_DETAIL", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PartCode", - table: "FisCUR_TS_SORT_DETAIL", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FullBarCode", - table: "FisCUR_TS_SORT_DETAIL", - type: "nvarchar(200)", - maxLength: 200, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(200)", - oldMaxLength: 200, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "BillNum", - table: "FisCUR_TS_SORT_DETAIL", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "BillNum", - table: "FisCUR_TB_BILL", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "VinCode", - table: "FisHIS_TS_SORT_DETAIL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "PartCode", - table: "FisHIS_TS_SORT_DETAIL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "FullBarCode", - table: "FisHIS_TS_SORT_DETAIL", - type: "nvarchar(200)", - maxLength: 200, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(200)", - oldMaxLength: 200); - - migrationBuilder.AlterColumn( - name: "BillNum", - table: "FisHIS_TS_SORT_DETAIL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "BillNum", - table: "FisHIS_TB_BILL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "VinCode", - table: "FisCUR_TS_SORT_DETAIL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "PartCode", - table: "FisCUR_TS_SORT_DETAIL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "FullBarCode", - table: "FisCUR_TS_SORT_DETAIL", - type: "nvarchar(200)", - maxLength: 200, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(200)", - oldMaxLength: 200); - - migrationBuilder.AlterColumn( - name: "BillNum", - table: "FisCUR_TS_SORT_DETAIL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "BillNum", - table: "FisCUR_TB_BILL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - } - } -} diff --git a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/Migrations/20220701064724_Created_NewJit_Entity2022-07-01_2.Designer.cs b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/Migrations/20240109072607_Add_ImportRec_Table.Designer.cs similarity index 92% rename from src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/Migrations/20220701064724_Created_NewJit_Entity2022-07-01_2.Designer.cs rename to src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/Migrations/20240109072607_Add_ImportRec_Table.Designer.cs index 815009c..9a06216 100644 --- a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/Migrations/20220701064724_Created_NewJit_Entity2022-07-01_2.Designer.cs +++ b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/Migrations/20240109072607_Add_ImportRec_Table.Designer.cs @@ -11,8 +11,8 @@ using WY.NewJit.EntityFrameworkCore; namespace WY.NewJit.Migrations { [DbContext(typeof(NewJitMigrationsDbContext))] - [Migration("20220701064724_Created_NewJit_Entity2022-07-01_2")] - partial class Created_NewJit_Entity20220701_2 + [Migration("20240109072607_Add_ImportRec_Table")] + partial class Add_ImportRec_Table { protected override void BuildTargetModel(ModelBuilder modelBuilder) { @@ -2017,6 +2017,265 @@ namespace WY.NewJit.Migrations b.ToTable("FisSequenceInfo"); }); + modelBuilder.Entity("WY.NewJit.EdiReceive.Entitys.ImportRecord", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreatePerson") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("ExteriorTrimmingColor") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("Factory") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("HostSN") + .HasColumnType("int"); + + b.Property("ImportPerson") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ImportTime") + .HasMaxLength(50) + .HasColumnType("datetime2"); + + b.Property("InteriorColor") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("OnlineTime") + .HasColumnType("datetime"); + + b.Property("PaintOfflineTime") + .HasColumnType("datetime"); + + b.Property("ProductLine") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("Remark") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("Remark2") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("Remark3") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("Remark4") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("Remark5") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("SerialNum") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("Spec") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("SpecDesc") + .HasMaxLength(200) + .HasColumnType("nvarchar(200)"); + + b.Property("Target") + .HasMaxLength(200) + .HasColumnType("nvarchar(200)"); + + b.Property("Type") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("VehicleBodyCode") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("VehicleLocation") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("VehicleModelCode") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("VehicleModelDesc") + .HasMaxLength(200) + .HasColumnType("nvarchar(200)"); + + b.Property("VehicleModelName") + .HasMaxLength(200) + .HasColumnType("nvarchar(200)"); + + b.Property("Vin") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("WorkLocation") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.HasKey("Id"); + + b.ToTable("FisImportRecord"); + }); + + modelBuilder.Entity("WY.NewJit.EdiReceive.Entitys.ImportRecordHis", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreatePerson") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("ExteriorTrimmingColor") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("Factory") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("HostSN") + .HasColumnType("int"); + + b.Property("ImportPerson") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ImportTime") + .HasMaxLength(50) + .HasColumnType("datetime2"); + + b.Property("InteriorColor") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("OnlineTime") + .HasColumnType("datetime"); + + b.Property("PaintOfflineTime") + .HasColumnType("datetime"); + + b.Property("ProductLine") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("Remark") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("Remark2") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("Remark3") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("Remark4") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("Remark5") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("SerialNum") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("Spec") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("SpecDesc") + .HasMaxLength(200) + .HasColumnType("nvarchar(200)"); + + b.Property("Target") + .HasMaxLength(200) + .HasColumnType("nvarchar(200)"); + + b.Property("Type") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("VehicleBodyCode") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("VehicleLocation") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("VehicleModelCode") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("VehicleModelDesc") + .HasMaxLength(200) + .HasColumnType("nvarchar(200)"); + + b.Property("VehicleModelName") + .HasMaxLength(200) + .HasColumnType("nvarchar(200)"); + + b.Property("Vin") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("WorkLocation") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.HasKey("Id"); + + b.HasIndex("HostSN") + .HasDatabaseName("IX_ImportRecHis_HostSN"); + + b.ToTable("FisImportRecordHis"); + }); + + modelBuilder.Entity("WY.NewJit.EdiReceive.Entitys.LastImportHostSN", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("HostSN") + .HasColumnType("int"); + + b.Property("ProductLineCode") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.HasKey("Id"); + + b.ToTable("FisLastImportHostSN"); + }); + modelBuilder.Entity("WY.NewJit.Extends.MenBanPackingList", b => { b.Property("Id") @@ -2157,6 +2416,9 @@ namespace WY.NewJit.Migrations b.Property("HostSN") .HasColumnType("nvarchar(max)"); + b.Property("HostSN2") + .HasColumnType("int"); + b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") @@ -2202,51 +2464,12 @@ namespace WY.NewJit.Migrations b.ToTable("FisMenBanPackingRec"); }); - modelBuilder.Entity("WY.NewJit.Extends.MenBanPackingRec2", b => + modelBuilder.Entity("WY.NewJit.Extends.PaiGe.MaterialExt", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); - b.Property("Column00") - .HasColumnType("nvarchar(max)"); - - b.Property("Column01") - .HasColumnType("nvarchar(max)"); - - b.Property("Column02") - .HasColumnType("nvarchar(max)"); - - b.Property("Column03") - .HasColumnType("nvarchar(max)"); - - b.Property("Column04") - .HasColumnType("nvarchar(max)"); - - b.Property("Column05") - .HasColumnType("nvarchar(max)"); - - b.Property("Column06") - .HasColumnType("nvarchar(max)"); - - b.Property("Column07") - .HasColumnType("nvarchar(max)"); - - b.Property("Column08") - .HasColumnType("nvarchar(max)"); - - b.Property("Column09") - .HasColumnType("nvarchar(max)"); - - b.Property("Column10") - .HasColumnType("nvarchar(max)"); - - b.Property("Column11") - .HasColumnType("nvarchar(max)"); - - b.Property("Column12") - .HasColumnType("nvarchar(max)"); - b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) @@ -2287,28 +2510,86 @@ namespace WY.NewJit.Migrations .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); - b.HasKey("Id"); + b.Property("MaterialDescription") + .HasColumnType("nvarchar(max)"); - b.ToTable("FisMenBanPackingRec2"); - }); + b.Property("MaterialDescription2") + .HasColumnType("nvarchar(max)"); - modelBuilder.Entity("WY.NewJit.Extends.PaiGe.Fis.CUR_TB_BILL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); + b.Property("MaterialGroup") + .HasColumnType("nvarchar(max)"); - b.Property("AccountDate") + b.Property("MaterialMemo") + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialNum") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("MaterialType") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialType2") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialType3") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("RelationKey") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("UpdateTime") .HasColumnType("datetime2"); + b.Property("VehicleModel") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("promo") + .HasColumnType("nvarchar(max)"); + + b.HasKey("Id"); + + b.HasIndex("MaterialNum") + .HasDatabaseName("IX_MaterialExt_MaterialNum"); + + b.HasIndex("MaterialType") + .HasDatabaseName("IX_MaterialExt_MaterialType"); + + b.HasIndex("MaterialType2") + .HasDatabaseName("IX_MaterialExt_MaterialType2"); + + b.HasIndex("MaterialType3") + .HasDatabaseName("IX_MaterialExt_MaterialType3"); + + b.HasIndex("RelationKey") + .HasDatabaseName("IX_MaterialExt_RelationKey"); + + b.HasIndex("VehicleModel") + .HasDatabaseName("IX_MaterialExt_VehicleModel"); + + b.ToTable("FisMaterialExt"); + }); + + modelBuilder.Entity("WY.NewJit.Extends.PaiGe.WMS.FisTB_BILL", b => + { b.Property("BillNum") - .IsRequired() .HasMaxLength(50) .HasColumnType("nvarchar(50)"); + b.Property("AccountDate") + .HasColumnType("datetime2"); + b.Property("BillTime") .HasColumnType("datetime2"); + b.Property("BillType") + .HasColumnType("int"); + b.Property("CustId") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); @@ -2320,6 +2601,10 @@ namespace WY.NewJit.Migrations .HasMaxLength(50) .HasColumnType("nvarchar(50)"); + b.Property("ExecuteRemark") + .HasMaxLength(200) + .HasColumnType("nvarchar(200)"); + b.Property("FinishTime") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); @@ -2335,6 +2620,9 @@ namespace WY.NewJit.Migrations .HasMaxLength(50) .HasColumnType("nvarchar(50)"); + b.Property("IsExecute") + .HasColumnType("bit"); + b.Property("OperName") .IsRequired() .HasMaxLength(50) @@ -2365,6 +2653,9 @@ namespace WY.NewJit.Migrations b.Property("State") .HasColumnType("int"); + b.Property("SubBillType") + .HasColumnType("int"); + b.Property("TransportType") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); @@ -2374,216 +2665,246 @@ namespace WY.NewJit.Migrations .HasColumnType("nvarchar(50)"); b.Property("UID") + .ValueGeneratedOnAddOrUpdate() .HasColumnType("int"); b.Property("VendId") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.HasKey("Id"); + b.HasKey("BillNum"); - b.ToTable("FisCUR_TB_BILL"); + b.ToTable("FisTB_BILL"); }); - modelBuilder.Entity("WY.NewJit.Extends.PaiGe.Fis.CUR_TS_SORT_DETAIL", b => + modelBuilder.Entity("WY.NewJit.Extends.PaiGe.WMS.FisTB_BILL_HIS", b => { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") + b.Property("BillNum") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("BillNum") - .IsRequired() + b.Property("AccountDate") + .HasColumnType("datetime2"); + + b.Property("BillTime") + .HasColumnType("datetime2"); + + b.Property("BillType") + .HasColumnType("int"); + + b.Property("CustId") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("CustBarCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + b.Property("DetailQty") + .HasColumnType("int"); - b.Property("CustPartCode") + b.Property("DockCode") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("DispatchDate") + b.Property("FinishTime") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("Dock") + b.Property("GUID") + .HasColumnType("uniqueidentifier"); + + b.Property("GateCode") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("FullBarCode") + b.Property("GateName") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("OperName") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.Property("FyonNum") + b.Property("ProjectId") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("LineNum") - .HasColumnType("int"); + b.Property("Remark") + .HasColumnType("nvarchar(max)"); - b.Property("PartCode") - .IsRequired() + b.Property("SourceBillNum") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("PlanQty") - .HasColumnType("money"); - - b.Property("ProjectId") - .IsRequired() + b.Property("SourceBillNum2") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("Qty") - .HasColumnType("money"); + b.Property("SourceBillNum3") + .HasColumnType("nvarchar(max)"); - b.Property("ReceiptQty") - .HasColumnType("money"); + b.Property("StartTime") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.Property("Remark") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + b.Property("State") + .HasColumnType("int"); - b.Property("SeqNum") - .IsRequired() + b.Property("SubBillType") + .HasColumnType("int"); + + b.Property("TransportType") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("State") - .IsRequired() + b.Property("TruckNum") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("UID") + b.Property("UID") .ValueGeneratedOnAddOrUpdate() - .HasColumnType("bigint"); + .HasColumnType("int"); b.Property("VendId") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("VinCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); + b.HasKey("BillNum"); - b.ToTable("FisCUR_TS_SORT_DETAIL"); + b.ToTable("FisTB_BILL_HIS"); }); - modelBuilder.Entity("WY.NewJit.Extends.PaiGe.Fis.HIS_TB_BILL", b => + modelBuilder.Entity("WY.NewJit.Extends.PaiGe.WMS.FisTB_BILL_SCRAP", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); - b.Property("AccountDate") - .HasColumnType("datetime2"); - b.Property("BillNum") .IsRequired() .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasColumnType("varchar(50)"); - b.Property("BillTime") + b.Property("CreateTime") .HasColumnType("datetime2"); - b.Property("CustId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + b.Property("ExecuteTime") + .HasColumnType("datetime2"); - b.Property("DetailQty") - .HasColumnType("int"); + b.Property("IsExecute") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); - b.Property("DockCode") + b.Property("Remark") + .HasMaxLength(200) + .HasColumnType("nvarchar(200)"); + + b.HasKey("Id"); + + b.ToTable("FisTB_BILL_SCRAP"); + }); + + modelBuilder.Entity("WY.NewJit.Extends.PaiGe.WMS.FisTS_SORT_DETAIL", b => + { + b.Property("BillNum") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("FinishTime") + b.Property("VinCode") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("GUID") - .HasColumnType("uniqueidentifier"); - - b.Property("GateCode") + b.Property("PartCode") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("GateName") + b.Property("BarCode") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("OperName") - .IsRequired() + b.Property("CustBarCode") + .HasMaxLength(200) + .HasColumnType("nvarchar(200)"); + + b.Property("CustPartCode") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("ProjectId") + b.Property("DispatchDate") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SourceBillNum") + b.Property("Dock") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("SourceBillNum2") + b.Property("FullBarCode") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("nvarchar(200)"); + + b.Property("FyonNum") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("SourceBillNum3") - .HasColumnType("nvarchar(max)"); + b.Property("LineNum") + .HasColumnType("int"); - b.Property("StartTime") + b.Property("PlanQty") + .HasColumnType("money"); + + b.Property("ProjectId") + .IsRequired() .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("State") - .HasColumnType("int"); + b.Property("Qty") + .HasColumnType("money"); - b.Property("TransportType") + b.Property("ReceiptQty") + .HasColumnType("money"); + + b.Property("Remark") + .HasMaxLength(200) + .HasColumnType("nvarchar(200)"); + + b.Property("SeqNum") + .IsRequired() .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("TruckNum") + b.Property("State") + .IsRequired() .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("UID") - .HasColumnType("int"); + b.Property("UID") + .ValueGeneratedOnAddOrUpdate() + .HasColumnType("bigint"); b.Property("VendId") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.HasKey("Id"); + b.HasKey("BillNum", "VinCode", "PartCode"); - b.ToTable("FisHIS_TB_BILL"); + b.ToTable("FisTS_SORT_DETAIL"); }); - modelBuilder.Entity("WY.NewJit.Extends.PaiGe.Fis.HIS_TS_SORT_DETAIL", b => + modelBuilder.Entity("WY.NewJit.Extends.PaiGe.WMS.FisTS_SORT_DETAIL_HIS", b => { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); + b.Property("BillNum") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.Property("BarCode") + b.Property("VinCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("PartCode") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("BillNum") - .IsRequired() + b.Property("BarCode") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); @@ -2615,11 +2936,6 @@ namespace WY.NewJit.Migrations b.Property("LineNum") .HasColumnType("int"); - b.Property("PartCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - b.Property("PlanQty") .HasColumnType("money"); @@ -2656,125 +2972,9 @@ namespace WY.NewJit.Migrations .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("VinCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("FisHIS_TS_SORT_DETAIL"); - }); - - modelBuilder.Entity("WY.NewJit.Extends.PaiGe.MaterialExt", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDescription") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription2") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialGroup") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialMemo") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialNum") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("MaterialType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialType2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialType3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RelationKey") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("VehicleModel") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("promo") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialNum") - .HasDatabaseName("IX_MaterialExt_MaterialNum"); - - b.HasIndex("MaterialType") - .HasDatabaseName("IX_MaterialExt_MaterialType"); - - b.HasIndex("MaterialType2") - .HasDatabaseName("IX_MaterialExt_MaterialType2"); - - b.HasIndex("MaterialType3") - .HasDatabaseName("IX_MaterialExt_MaterialType3"); - - b.HasIndex("RelationKey") - .HasDatabaseName("IX_MaterialExt_RelationKey"); - - b.HasIndex("VehicleModel") - .HasDatabaseName("IX_MaterialExt_VehicleModel"); + b.HasKey("BillNum", "VinCode", "PartCode"); - b.ToTable("FisMaterialExt"); + b.ToTable("FisTS_SORT_DETAIL_HIS"); }); modelBuilder.Entity("WY.NewJit.Extends.ProductLine", b => @@ -2964,178 +3164,47 @@ namespace WY.NewJit.Migrations .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MinOnlineTime") - .HasColumnType("datetime2"); - - b.Property("PartType") - .HasColumnType("nvarchar(max)"); - - b.Property("PrintDate") - .HasColumnType("datetime2"); - - b.Property("PrintType") - .HasColumnType("int"); - - b.Property("ProductLine") - .HasColumnType("nvarchar(max)"); - - b.Property("ProviderCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ReportStatus") - .HasColumnType("int"); - - b.Property("SortId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.ToTable("FisZhuHuBanPackingList"); - }); - - modelBuilder.Entity("WY.NewJit.Extends.ZhuHuBanPackingRec", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HostSN") - .HasColumnType("int"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KNR") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("M100BillId") - .HasColumnType("uniqueidentifier"); - - b.Property("MaterialDescription") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription2") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode2") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(max)"); - - b.Property("ZhuHuBanPackingListId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ZhuHuBanPackingListId"); - - b.ToTable("FisZhuHuBanPackingRec"); - }); - - modelBuilder.Entity("WY.NewJit.Extends.ZhuHuBanPackingRec2", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Column00") - .HasColumnType("nvarchar(max)"); - - b.Property("Column01") - .HasColumnType("nvarchar(max)"); - - b.Property("Column02") - .HasColumnType("nvarchar(max)"); - - b.Property("Column03") - .HasColumnType("nvarchar(max)"); - - b.Property("Column04") - .HasColumnType("nvarchar(max)"); + .HasColumnType("datetime2") + .HasColumnName("LastModificationTime"); - b.Property("Column05") - .HasColumnType("nvarchar(max)"); + b.Property("LastModifierId") + .HasColumnType("uniqueidentifier") + .HasColumnName("LastModifierId"); - b.Property("Column06") - .HasColumnType("nvarchar(max)"); + b.Property("MinOnlineTime") + .HasColumnType("datetime2"); - b.Property("Column07") + b.Property("PartType") .HasColumnType("nvarchar(max)"); - b.Property("Column08") - .HasColumnType("nvarchar(max)"); + b.Property("PrintDate") + .HasColumnType("datetime2"); - b.Property("Column09") - .HasColumnType("nvarchar(max)"); + b.Property("PrintType") + .HasColumnType("int"); - b.Property("Column10") + b.Property("ProductLine") .HasColumnType("nvarchar(max)"); - b.Property("Column11") + b.Property("ProviderCode") .HasColumnType("nvarchar(max)"); - b.Property("Column12") - .HasColumnType("nvarchar(max)"); + b.Property("ReportStatus") + .HasColumnType("int"); - b.Property("Column13") - .HasColumnType("nvarchar(max)"); + b.Property("SortId") + .HasColumnType("uniqueidentifier"); - b.Property("Column14") - .HasColumnType("nvarchar(max)"); + b.HasKey("Id"); - b.Property("Column15") - .HasColumnType("nvarchar(max)"); + b.ToTable("FisZhuHuBanPackingList"); + }); - b.Property("Column16") - .HasColumnType("nvarchar(max)"); + modelBuilder.Entity("WY.NewJit.Extends.ZhuHuBanPackingRec", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() @@ -3163,12 +3232,21 @@ namespace WY.NewJit.Migrations .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); + b.Property("HostSN") + .HasColumnType("int"); + + b.Property("HostSN2") + .HasColumnType("int"); + b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); + b.Property("KNR") + .HasColumnType("nvarchar(max)"); + b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); @@ -3177,9 +3255,32 @@ namespace WY.NewJit.Migrations .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); + b.Property("M100BillId") + .HasColumnType("uniqueidentifier"); + + b.Property("MaterialDescription") + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialDescription2") + .HasColumnType("nvarchar(max)"); + + b.Property("PartCode") + .HasColumnType("nvarchar(max)"); + + b.Property("PartCode2") + .HasColumnType("nvarchar(max)"); + + b.Property("VIN") + .HasColumnType("nvarchar(max)"); + + b.Property("ZhuHuBanPackingListId") + .HasColumnType("uniqueidentifier"); + b.HasKey("Id"); - b.ToTable("FisZhuHuBanPackingRec2"); + b.HasIndex("ZhuHuBanPackingListId"); + + b.ToTable("FisZhuHuBanPackingRec"); }); modelBuilder.Entity("WY.NewJit.MsgBaseData.AssemblyCfgErp", b => @@ -4021,6 +4122,62 @@ namespace WY.NewJit.Migrations b.ToTable("FisPartSwitch"); }); + modelBuilder.Entity("WY.NewJit.MsgBaseData.PrintTemplateConfiguration", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("ConcurrencyStamp") + .IsConcurrencyToken() + .HasMaxLength(40) + .HasColumnType("nvarchar(40)") + .HasColumnName("ConcurrencyStamp"); + + b.Property("CreationTime") + .HasColumnType("datetime2") + .HasColumnName("CreationTime"); + + b.Property("CreatorId") + .HasColumnType("uniqueidentifier") + .HasColumnName("CreatorId"); + + b.Property("ExtraProperties") + .HasColumnType("nvarchar(max)") + .HasColumnName("ExtraProperties"); + + b.Property("GroupCode") + .HasColumnType("int"); + + b.Property("GroupName") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2") + .HasColumnName("LastModificationTime"); + + b.Property("LastModifierId") + .HasColumnType("uniqueidentifier") + .HasColumnName("LastModifierId"); + + b.Property("PartType") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("TemplateName") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.HasKey("Id"); + + b.HasIndex("GroupName", "PartType") + .IsUnique() + .HasFilter("[GroupName] IS NOT NULL AND [PartType] IS NOT NULL"); + + b.ToTable("FisPrintTemplateConfiguration"); + }); + modelBuilder.Entity("WY.NewJit.MsgCheck.BillM100", b => { b.Property("Id") @@ -4333,6 +4490,37 @@ namespace WY.NewJit.Migrations b.ToTable("FisBillM110Part"); }); + modelBuilder.Entity("WY.NewJit.MsgCheck.BillNumberRecord", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("InsertedRows") + .HasColumnType("int"); + + b.Property("ProductLine") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("RecordNumber") + .HasColumnType("int"); + + b.Property("RoundNumber") + .HasColumnType("int"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.HasKey("Id"); + + b.HasIndex("ProductLine") + .IsUnique() + .HasFilter("[ProductLine] IS NOT NULL"); + + b.ToTable("FisBillNumberRecord"); + }); + modelBuilder.Entity("WY.NewJit.MsgCheck.BillR100", b => { b.Property("Id") @@ -5231,6 +5419,136 @@ namespace WY.NewJit.Migrations b.ToTable("FisTransmissionModeCfg"); }); + modelBuilder.Entity("WY.NewJit.PrintTable.AlreadyPrint", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("AssemblyID") + .HasColumnType("uniqueidentifier"); + + b.Property("BillStatus") + .HasColumnType("int"); + + b.Property("BusinessType") + .HasColumnType("int"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorId") + .HasColumnType("uniqueidentifier"); + + b.Property("Description") + .HasColumnType("nvarchar(max)"); + + b.Property("HostSN") + .HasColumnType("int"); + + b.Property("HostSN2") + .HasColumnType("int"); + + b.Property("KNR") + .HasColumnType("nvarchar(max)"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2"); + + b.Property("LastModifierId") + .HasColumnType("uniqueidentifier"); + + b.Property("M100Id") + .HasColumnType("uniqueidentifier"); + + b.Property("OnlineTime") + .HasColumnType("datetime2"); + + b.Property("PrintType") + .HasColumnType("int"); + + b.Property("ProductLine") + .HasColumnType("nvarchar(max)"); + + b.Property("ReceiveTime") + .HasColumnType("datetime2"); + + b.Property("VIN") + .HasColumnType("nvarchar(max)"); + + b.Property("VehicleModelCode") + .HasColumnType("nvarchar(max)"); + + b.HasKey("Id"); + + b.ToTable("FisAlreadyPrint"); + }); + + modelBuilder.Entity("WY.NewJit.PrintTable.WaitPrint", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("AssemblyID") + .HasColumnType("uniqueidentifier"); + + b.Property("BillStatus") + .HasColumnType("int"); + + b.Property("BusinessType") + .HasColumnType("int"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorId") + .HasColumnType("uniqueidentifier"); + + b.Property("Description") + .HasColumnType("nvarchar(max)"); + + b.Property("HostSN") + .HasColumnType("int"); + + b.Property("HostSN2") + .HasColumnType("int"); + + b.Property("KNR") + .HasColumnType("nvarchar(max)"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2"); + + b.Property("LastModifierId") + .HasColumnType("uniqueidentifier"); + + b.Property("M100Id") + .HasColumnType("uniqueidentifier"); + + b.Property("OnlineTime") + .HasColumnType("datetime2"); + + b.Property("PrintType") + .HasColumnType("int"); + + b.Property("ProductLine") + .HasColumnType("nvarchar(max)"); + + b.Property("ReceiveTime") + .HasColumnType("datetime2"); + + b.Property("VIN") + .HasColumnType("nvarchar(max)"); + + b.Property("VehicleModelCode") + .HasColumnType("nvarchar(max)"); + + b.HasKey("Id"); + + b.ToTable("FisWaitPrint"); + }); + modelBuilder.Entity("WY.NewJit.TianHe.NotMatchTempBill", b => { b.Property("Id") diff --git a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/Migrations/20240109072607_Add_ImportRec_Table.cs b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/Migrations/20240109072607_Add_ImportRec_Table.cs new file mode 100644 index 0000000..560537c --- /dev/null +++ b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/Migrations/20240109072607_Add_ImportRec_Table.cs @@ -0,0 +1,3238 @@ +using System; +using Microsoft.EntityFrameworkCore.Migrations; + +namespace WY.NewJit.Migrations +{ + public partial class Add_ImportRec_Table : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.CreateTable( + name: "AbpAuditLogs", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ApplicationName = table.Column(type: "nvarchar(96)", maxLength: 96, nullable: true), + UserId = table.Column(type: "uniqueidentifier", nullable: true), + UserName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + TenantName = table.Column(type: "nvarchar(max)", nullable: true), + ImpersonatorUserId = table.Column(type: "uniqueidentifier", nullable: true), + ImpersonatorTenantId = table.Column(type: "uniqueidentifier", nullable: true), + ExecutionTime = table.Column(type: "datetime2", nullable: false), + ExecutionDuration = table.Column(type: "int", nullable: false), + ClientIpAddress = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ClientName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + ClientId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CorrelationId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + BrowserInfo = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + HttpMethod = table.Column(type: "nvarchar(16)", maxLength: 16, nullable: true), + Url = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + Exceptions = table.Column(type: "nvarchar(4000)", maxLength: 4000, nullable: true), + Comments = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + HttpStatusCode = table.Column(type: "int", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpAuditLogs", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpBackgroundJobs", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + JobName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + JobArgs = table.Column(type: "nvarchar(max)", maxLength: 1048576, nullable: false), + TryCount = table.Column(type: "smallint", nullable: false, defaultValue: (short)0), + CreationTime = table.Column(type: "datetime2", nullable: false), + NextTryTime = table.Column(type: "datetime2", nullable: false), + LastTryTime = table.Column(type: "datetime2", nullable: true), + IsAbandoned = table.Column(type: "bit", nullable: false, defaultValue: false), + Priority = table.Column(type: "tinyint", nullable: false, defaultValue: (byte)15), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpBackgroundJobs", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpClaimTypes", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Name = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + Required = table.Column(type: "bit", nullable: false), + IsStatic = table.Column(type: "bit", nullable: false), + Regex = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + RegexDescription = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + Description = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + ValueType = table.Column(type: "int", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpClaimTypes", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpFeatureValues", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Value = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + ProviderName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ProviderKey = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpFeatureValues", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpLinkUsers", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + SourceUserId = table.Column(type: "uniqueidentifier", nullable: false), + SourceTenantId = table.Column(type: "uniqueidentifier", nullable: true), + TargetUserId = table.Column(type: "uniqueidentifier", nullable: false), + TargetTenantId = table.Column(type: "uniqueidentifier", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpLinkUsers", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpOrganizationUnits", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + ParentId = table.Column(type: "uniqueidentifier", nullable: true), + Code = table.Column(type: "nvarchar(95)", maxLength: 95, nullable: false), + DisplayName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpOrganizationUnits", x => x.Id); + table.ForeignKey( + name: "FK_AbpOrganizationUnits_AbpOrganizationUnits_ParentId", + column: x => x.ParentId, + principalTable: "AbpOrganizationUnits", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); + }); + + migrationBuilder.CreateTable( + name: "AbpPermissionGrants", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + ProviderName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ProviderKey = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpPermissionGrants", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpRoles", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Name = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + NormalizedName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + IsDefault = table.Column(type: "bit", nullable: false), + IsStatic = table.Column(type: "bit", nullable: false), + IsPublic = table.Column(type: "bit", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpRoles", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpSecurityLogs", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + ApplicationName = table.Column(type: "nvarchar(96)", maxLength: 96, nullable: true), + Identity = table.Column(type: "nvarchar(96)", maxLength: 96, nullable: true), + Action = table.Column(type: "nvarchar(96)", maxLength: 96, nullable: true), + UserId = table.Column(type: "uniqueidentifier", nullable: true), + UserName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + TenantName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ClientId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CorrelationId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ClientIpAddress = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + BrowserInfo = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpSecurityLogs", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpSettings", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Value = table.Column(type: "nvarchar(2048)", maxLength: 2048, nullable: false), + ProviderName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ProviderKey = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpSettings", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpTenants", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpTenants", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpUsers", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + UserName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + NormalizedUserName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Surname = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Email = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + NormalizedEmail = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + EmailConfirmed = table.Column(type: "bit", nullable: false, defaultValue: false), + PasswordHash = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + SecurityStamp = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + IsExternal = table.Column(type: "bit", nullable: false, defaultValue: false), + PhoneNumber = table.Column(type: "nvarchar(16)", maxLength: 16, nullable: true), + PhoneNumberConfirmed = table.Column(type: "bit", nullable: false, defaultValue: false), + TwoFactorEnabled = table.Column(type: "bit", nullable: false, defaultValue: false), + LockoutEnd = table.Column(type: "datetimeoffset", nullable: true), + LockoutEnabled = table.Column(type: "bit", nullable: false, defaultValue: false), + AccessFailedCount = table.Column(type: "int", nullable: false, defaultValue: 0), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpUsers", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisAlreadyPrint", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + M100Id = table.Column(type: "uniqueidentifier", nullable: false), + BusinessType = table.Column(type: "int", nullable: false), + ProductLine = table.Column(type: "nvarchar(max)", nullable: true), + OnlineTime = table.Column(type: "datetime2", nullable: false), + HostSN = table.Column(type: "int", nullable: false), + KNR = table.Column(type: "nvarchar(max)", nullable: true), + VIN = table.Column(type: "nvarchar(max)", nullable: true), + VehicleModelCode = table.Column(type: "nvarchar(max)", nullable: true), + AssemblyID = table.Column(type: "uniqueidentifier", nullable: true), + BillStatus = table.Column(type: "int", nullable: false), + PrintType = table.Column(type: "int", nullable: false), + HostSN2 = table.Column(type: "int", nullable: false), + Description = table.Column(type: "nvarchar(max)", nullable: true), + ReceiveTime = table.Column(type: "datetime2", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisAlreadyPrint", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisAssemblyCfgErp", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ErpAssemblyCode = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + ErpAssemblyName = table.Column(type: "nvarchar(max)", nullable: true), + ErpAssemblyVersion = table.Column(type: "int", nullable: false), + VehicleModel = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + NewVersionId = table.Column(type: "uniqueidentifier", nullable: true), + RelationKey = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + GroupCode = table.Column(type: "varchar(100)", maxLength: 100, nullable: true), + GroupId = table.Column(type: "uniqueidentifier", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisAssemblyCfgErp", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisAssemblyCfgGroup", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + GroupCode = table.Column(type: "varchar(100)", maxLength: 100, nullable: true), + VehicleModel = table.Column(type: "nvarchar(max)", nullable: true), + IsDisable = table.Column(type: "bit", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisAssemblyCfgGroup", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisAssemblyCfgVehicle", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + AssemblyName = table.Column(type: "nvarchar(max)", nullable: true), + VehicleModelCode = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + Description = table.Column(type: "nvarchar(max)", nullable: true), + IsActivate = table.Column(type: "bit", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisAssemblyCfgVehicle", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisBillM100", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + MessageFileReceiveID = table.Column(type: "uniqueidentifier", nullable: true), + SerialNum = table.Column(type: "int", nullable: true), + HostSN = table.Column(type: "int", nullable: true), + KNR = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + VIN = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + AssemblyID = table.Column(type: "uniqueidentifier", nullable: true), + OnlineTime = table.Column(type: "datetime2", nullable: true), + VehicleModelCode = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + ProductLine = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + Version = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + ReceiveTime = table.Column(type: "datetime2", nullable: true), + BillStatus = table.Column(type: "int", nullable: false), + Description = table.Column(type: "nvarchar(max)", nullable: true), + PrintTime = table.Column(type: "datetime2", nullable: true), + PrintBillNum = table.Column(type: "nvarchar(max)", nullable: true), + PrintTime2 = table.Column(type: "datetime2", nullable: true), + SerialNumStr = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + OperationType = table.Column(type: "int", nullable: false), + Operator = table.Column(type: "nvarchar(max)", nullable: true), + OperationTime = table.Column(type: "datetime2", nullable: true), + CanNotPrint = table.Column(type: "bit", nullable: true), + NeedReplenishPrint = table.Column(type: "int", nullable: true), + HostSN2 = table.Column(type: "int", nullable: true), + IsPartSwitch = table.Column(type: "bit", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisBillM100", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisBillM110", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + MessageFileReceiveID = table.Column(type: "uniqueidentifier", nullable: false), + SerialNum = table.Column(type: "int", nullable: true), + HostSN = table.Column(type: "int", nullable: true), + KNR = table.Column(type: "nvarchar(max)", nullable: true), + VIN = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + AssemblyID = table.Column(type: "uniqueidentifier", nullable: true), + OnlineTime = table.Column(type: "datetime2", nullable: true), + VehicleModelCode = table.Column(type: "nvarchar(max)", nullable: true), + ProductLine = table.Column(type: "nvarchar(max)", nullable: true), + Version = table.Column(type: "nvarchar(max)", nullable: true), + ReceiveTime = table.Column(type: "datetime2", nullable: true), + BillStatus = table.Column(type: "int", nullable: false), + Description = table.Column(type: "nvarchar(max)", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisBillM110", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisBillNumberRecord", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ProductLine = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + RoundNumber = table.Column(type: "int", nullable: false), + RecordNumber = table.Column(type: "int", nullable: false), + InsertedRows = table.Column(type: "int", nullable: false), + UpdateTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisBillNumberRecord", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisBillR100", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + MessageFileReceiveID = table.Column(type: "uniqueidentifier", nullable: false), + HostSN = table.Column(type: "int", nullable: true), + KNR = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + AssemblyID = table.Column(type: "uniqueidentifier", nullable: true), + OnlineTime = table.Column(type: "datetime2", nullable: true), + ReceiveTime = table.Column(type: "datetime2", nullable: true), + VehicleModelCode = table.Column(type: "nvarchar(max)", nullable: true), + ProductLine = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + Version = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + BillStatus = table.Column(type: "int", nullable: false), + Description = table.Column(type: "nvarchar(max)", nullable: true), + PrintTime = table.Column(type: "datetime2", nullable: true), + SerialNum = table.Column(type: "int", nullable: true), + SerialNumStr = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + IsPartSwitch = table.Column(type: "bit", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisBillR100", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisBooks", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Name = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), + Type = table.Column(type: "int", nullable: false), + PublishDate = table.Column(type: "datetime2", nullable: false), + Price = table.Column(type: "real", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisBooks", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisDicItem", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + DicTypeCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + DicItemCode = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + DicItemName = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + DicItemSort1 = table.Column(type: "nvarchar(max)", nullable: true), + DicItemSort2 = table.Column(type: "nvarchar(max)", nullable: true), + DicItemSort3 = table.Column(type: "nvarchar(max)", nullable: true), + DicItemSort4 = table.Column(type: "nvarchar(max)", nullable: true), + DicItemSort5 = table.Column(type: "nvarchar(max)", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisDicItem", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisDicType", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + DicTypeCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + DicTypeName = table.Column(type: "nvarchar(max)", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisDicType", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisExcludePartCfg", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + VehicleModelCode = table.Column(type: "nvarchar(max)", nullable: true), + PartCode = table.Column(type: "nvarchar(max)", nullable: true), + ExcludeReason = table.Column(type: "nvarchar(max)", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisExcludePartCfg", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisGlobalSettings", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + RefreshMessageParseCache = table.Column(type: "nvarchar(1)", maxLength: 1, nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisGlobalSettings", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisImportRecord", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Factory = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + VehicleLocation = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + WorkLocation = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + Vin = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + VehicleBodyCode = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + VehicleModelCode = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + VehicleModelName = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + VehicleModelDesc = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + Spec = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + SpecDesc = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + Type = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + PaintOfflineTime = table.Column(type: "datetime", nullable: true), + OnlineTime = table.Column(type: "datetime", nullable: true), + InteriorColor = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + ExteriorTrimmingColor = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + SerialNum = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + HostSN = table.Column(type: "int", nullable: false), + ProductLine = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + Target = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + Remark = table.Column(type: "varchar(200)", maxLength: 200, nullable: true), + CreateTime = table.Column(type: "datetime2", nullable: true), + CreatePerson = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + ImportTime = table.Column(type: "datetime2", maxLength: 50, nullable: true), + ImportPerson = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + Remark2 = table.Column(type: "varchar(200)", maxLength: 200, nullable: true), + Remark3 = table.Column(type: "varchar(200)", maxLength: 200, nullable: true), + Remark4 = table.Column(type: "varchar(200)", maxLength: 200, nullable: true), + Remark5 = table.Column(type: "varchar(200)", maxLength: 200, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisImportRecord", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisImportRecordHis", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Factory = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + VehicleLocation = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + WorkLocation = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + Vin = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + VehicleBodyCode = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + VehicleModelCode = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + VehicleModelName = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + VehicleModelDesc = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + Spec = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + SpecDesc = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + Type = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + PaintOfflineTime = table.Column(type: "datetime", nullable: true), + OnlineTime = table.Column(type: "datetime", nullable: true), + InteriorColor = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + ExteriorTrimmingColor = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + SerialNum = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + HostSN = table.Column(type: "int", nullable: false), + ProductLine = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + Target = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + Remark = table.Column(type: "varchar(200)", maxLength: 200, nullable: true), + CreateTime = table.Column(type: "datetime2", nullable: true), + CreatePerson = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + ImportTime = table.Column(type: "datetime2", maxLength: 50, nullable: true), + ImportPerson = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + Remark2 = table.Column(type: "varchar(200)", maxLength: 200, nullable: true), + Remark3 = table.Column(type: "varchar(200)", maxLength: 200, nullable: true), + Remark4 = table.Column(type: "varchar(200)", maxLength: 200, nullable: true), + Remark5 = table.Column(type: "varchar(200)", maxLength: 200, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisImportRecordHis", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisLastImportHostSN", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ProductLineCode = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + HostSN = table.Column(type: "int", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_FisLastImportHostSN", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisLineSN", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ProductType = table.Column(type: "int", nullable: false), + ProductLine = table.Column(type: "nvarchar(450)", nullable: true), + PartType = table.Column(type: "nvarchar(450)", nullable: true), + SN = table.Column(type: "float", nullable: false), + LastPrintTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "nvarchar(max)", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisLineSN", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisLogRemind", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + LogType = table.Column(type: "int", nullable: false), + LogTitle = table.Column(type: "nvarchar(max)", nullable: true), + LogDesc = table.Column(type: "nvarchar(max)", nullable: true), + SeriousLevel = table.Column(type: "int", nullable: false), + LogStatus = table.Column(type: "int", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisLogRemind", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisMaterialExt", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + MaterialNum = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + MaterialDescription = table.Column(type: "nvarchar(max)", nullable: true), + MaterialDescription2 = table.Column(type: "nvarchar(max)", nullable: true), + MaterialMemo = table.Column(type: "nvarchar(max)", nullable: true), + MaterialGroup = table.Column(type: "nvarchar(max)", nullable: true), + VehicleModel = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + MaterialType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialType2 = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialType3 = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + RelationKey = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + UpdateTime = table.Column(type: "datetime2", nullable: false), + promo = table.Column(type: "nvarchar(max)", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisMaterialExt", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisMenBanPackingList", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + BillNum = table.Column(type: "nvarchar(max)", nullable: true), + BillSerialNum = table.Column(type: "nvarchar(max)", nullable: true), + BillLocation = table.Column(type: "nvarchar(max)", nullable: true), + ProviderCode = table.Column(type: "nvarchar(max)", nullable: true), + PartType = table.Column(type: "nvarchar(max)", nullable: true), + Capacity = table.Column(type: "nvarchar(max)", nullable: true), + PrintDate = table.Column(type: "datetime2", nullable: false), + PrintType = table.Column(type: "int", nullable: false), + ProductLine = table.Column(type: "nvarchar(max)", nullable: true), + BeginVin = table.Column(type: "nvarchar(max)", nullable: true), + EndVin = table.Column(type: "nvarchar(max)", nullable: true), + BeginHostSN = table.Column(type: "nvarchar(max)", nullable: true), + EndHostSN = table.Column(type: "nvarchar(max)", nullable: true), + SortId = table.Column(type: "uniqueidentifier", nullable: true), + ReportStatus = table.Column(type: "int", nullable: false), + MinOnlineTime = table.Column(type: "datetime2", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisMenBanPackingList", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisMessageReceive", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + MessageFileName = table.Column(type: "nvarchar(max)", nullable: true), + MessageContent = table.Column(type: "nvarchar(max)", nullable: true), + ReceiveStatus = table.Column(type: "int", nullable: false), + ReceiveTime = table.Column(type: "datetime2", nullable: false), + LastUpdateTime = table.Column(type: "datetime2", nullable: true), + ErrorCount = table.Column(type: "int", nullable: true), + ErrorMessage = table.Column(type: "nvarchar(max)", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisMessageReceive", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisMessageReceiveArchive", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + MessageFileName = table.Column(type: "nvarchar(max)", nullable: true), + MessageContent = table.Column(type: "nvarchar(max)", nullable: true), + ReceiveStatus = table.Column(type: "int", nullable: false), + ReceiveTime = table.Column(type: "datetime2", nullable: false), + LastUpdateTime = table.Column(type: "datetime2", nullable: true), + MessageReceiveId = table.Column(type: "uniqueidentifier", nullable: true), + BillType = table.Column(type: "nvarchar(max)", nullable: true), + BillOnlineTime = table.Column(type: "datetime2", nullable: true), + BillHostSN = table.Column(type: "int", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisMessageReceiveArchive", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisMessageVersionCfg", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Version = table.Column(type: "nvarchar(max)", nullable: true), + FileNameKeyword = table.Column(type: "nvarchar(max)", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisMessageVersionCfg", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisNotMatchTempBill", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + NotMatchBillId = table.Column(type: "uniqueidentifier", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisNotMatchTempBill", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisPartCfg", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + PartCode = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + PartName = table.Column(type: "nvarchar(max)", nullable: true), + PartType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + PartType2 = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + PartType3 = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Description = table.Column(type: "nvarchar(max)", nullable: true), + RelationKey = table.Column(type: "nvarchar(max)", nullable: true), + IsDisable = table.Column(type: "bit", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisPartCfg", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisPartSwitch", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + SourcePartCode = table.Column(type: "nvarchar(max)", nullable: true), + TargetPartCode = table.Column(type: "nvarchar(max)", nullable: true), + ActiveBeginTime = table.Column(type: "datetime2", nullable: true), + ActiveEndTime = table.Column(type: "datetime2", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisPartSwitch", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisPrintTemplateConfiguration", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + GroupName = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + PartType = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + TemplateName = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + GroupCode = table.Column(type: "int", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisPrintTemplateConfiguration", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisProductLine", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ProductLineCode = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + ProductLineName = table.Column(type: "nvarchar(max)", nullable: true), + BillType = table.Column(type: "int", nullable: false), + ProductType = table.Column(type: "int", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisProductLine", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisRepeatM100", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + MessageFileReceiveID = table.Column(type: "uniqueidentifier", nullable: true), + SerialNum = table.Column(type: "int", nullable: true), + HostSN = table.Column(type: "int", nullable: true), + KNR = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + VIN = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + AssemblyID = table.Column(type: "uniqueidentifier", nullable: true), + OnlineTime = table.Column(type: "datetime2", nullable: true), + ReceiveTime = table.Column(type: "datetime2", nullable: true), + VehicleModelCode = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + ProductLine = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + Version = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + BillStatus = table.Column(type: "int", nullable: false), + Description = table.Column(type: "nvarchar(max)", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisRepeatM100", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisRepeatM110", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + MessageFileReceiveID = table.Column(type: "uniqueidentifier", nullable: false), + HostSN = table.Column(type: "int", nullable: true), + KNR = table.Column(type: "nvarchar(max)", nullable: true), + VIN = table.Column(type: "nvarchar(max)", nullable: true), + OnlineTime = table.Column(type: "datetime2", nullable: true), + ReceiveTime = table.Column(type: "datetime2", nullable: true), + VehicleModelCode = table.Column(type: "nvarchar(max)", nullable: true), + ProductLine = table.Column(type: "nvarchar(max)", nullable: true), + Version = table.Column(type: "nvarchar(max)", nullable: true), + BillStatus = table.Column(type: "int", nullable: false), + Description = table.Column(type: "nvarchar(max)", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisRepeatM110", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisRepeatR100", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + MessageFileReceiveID = table.Column(type: "uniqueidentifier", nullable: false), + HostSN = table.Column(type: "int", nullable: true), + KNR = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + AssemblyID = table.Column(type: "uniqueidentifier", nullable: true), + OnlineTime = table.Column(type: "datetime2", nullable: true), + ReceiveTime = table.Column(type: "datetime2", nullable: true), + VehicleModelCode = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + ProductLine = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + Version = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + BillStatus = table.Column(type: "int", nullable: false), + Description = table.Column(type: "nvarchar(max)", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisRepeatR100", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisSequenceInfo", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + SequenceType = table.Column(type: "nvarchar(max)", nullable: true), + SequenceNum = table.Column(type: "bigint", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisSequenceInfo", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisTB_BILL", + columns: table => new + { + BillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + UID = table.Column(type: "int", nullable: false), + State = table.Column(type: "int", nullable: false), + SourceBillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + SourceBillNum2 = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + SourceBillNum3 = table.Column(type: "nvarchar(max)", nullable: true), + BillType = table.Column(type: "int", nullable: false), + SubBillType = table.Column(type: "int", nullable: false), + BillTime = table.Column(type: "datetime2", nullable: false), + StartTime = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + FinishTime = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + OperName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + DetailQty = table.Column(type: "int", nullable: false), + VendId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CustId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + ProjectId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + TransportType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + TruckNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + GateCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + GateName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + DockCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Remark = table.Column(type: "nvarchar(max)", nullable: true), + AccountDate = table.Column(type: "datetime2", nullable: true), + GUID = table.Column(type: "uniqueidentifier", nullable: false), + IsExecute = table.Column(type: "bit", nullable: false), + ExecuteRemark = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisTB_BILL", x => x.BillNum); + }); + + migrationBuilder.CreateTable( + name: "FisTB_BILL_HIS", + columns: table => new + { + BillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + UID = table.Column(type: "int", nullable: false), + State = table.Column(type: "int", nullable: false), + SourceBillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + SourceBillNum2 = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + SourceBillNum3 = table.Column(type: "nvarchar(max)", nullable: true), + BillType = table.Column(type: "int", nullable: false), + SubBillType = table.Column(type: "int", nullable: false), + BillTime = table.Column(type: "datetime2", nullable: false), + StartTime = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + FinishTime = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + OperName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + DetailQty = table.Column(type: "int", nullable: false), + VendId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CustId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + ProjectId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + TransportType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + TruckNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + GateCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + GateName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + DockCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Remark = table.Column(type: "nvarchar(max)", nullable: true), + AccountDate = table.Column(type: "datetime2", nullable: true), + GUID = table.Column(type: "uniqueidentifier", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_FisTB_BILL_HIS", x => x.BillNum); + }); + + migrationBuilder.CreateTable( + name: "FisTB_BILL_SCRAP", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + BillNum = table.Column(type: "varchar(50)", maxLength: 50, nullable: false), + IsExecute = table.Column(type: "bit", nullable: false, defaultValue: false), + Remark = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + CreateTime = table.Column(type: "datetime2", nullable: true), + ExecuteTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisTB_BILL_SCRAP", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisTransmissionModeCfg", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TransmissionModeType = table.Column(type: "int", nullable: false), + TransmissionModeContent = table.Column(type: "nvarchar(max)", nullable: true), + IsApply = table.Column(type: "bit", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisTransmissionModeCfg", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisTS_SORT_DETAIL", + columns: table => new + { + BillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + VinCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + PartCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + UID = table.Column(type: "bigint", nullable: false), + LineNum = table.Column(type: "int", nullable: false), + SeqNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + BarCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CustPartCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + ProjectId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + FyonNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + VendId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Dock = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + DispatchDate = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + State = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Remark = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + PlanQty = table.Column(type: "money", nullable: false), + Qty = table.Column(type: "money", nullable: false), + CustBarCode = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + ReceiptQty = table.Column(type: "money", nullable: false), + FullBarCode = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_FisTS_SORT_DETAIL", x => new { x.BillNum, x.VinCode, x.PartCode }); + }); + + migrationBuilder.CreateTable( + name: "FisTS_SORT_DETAIL_HIS", + columns: table => new + { + BillNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + VinCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + PartCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + UID = table.Column(type: "bigint", nullable: false), + LineNum = table.Column(type: "int", nullable: false), + SeqNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + BarCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CustPartCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + ProjectId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + FyonNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + VendId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Dock = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + DispatchDate = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + State = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Remark = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + PlanQty = table.Column(type: "money", nullable: false), + Qty = table.Column(type: "money", nullable: false), + CustBarCode = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + ReceiptQty = table.Column(type: "money", nullable: false), + FullBarCode = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_FisTS_SORT_DETAIL_HIS", x => new { x.BillNum, x.VinCode, x.PartCode }); + }); + + migrationBuilder.CreateTable( + name: "FisUnknownAssembly", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + BillID = table.Column(type: "uniqueidentifier", nullable: false), + ScanPoint = table.Column(type: "nvarchar(max)", nullable: true), + PartNum = table.Column(type: "float", nullable: true), + Description = table.Column(type: "nvarchar(max)", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisUnknownAssembly", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisUser2ProductLine", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + UserId = table.Column(type: "uniqueidentifier", nullable: false), + ProductLineId = table.Column(type: "uniqueidentifier", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisUser2ProductLine", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisWaitPrint", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + M100Id = table.Column(type: "uniqueidentifier", nullable: false), + BusinessType = table.Column(type: "int", nullable: false), + ProductLine = table.Column(type: "nvarchar(max)", nullable: true), + OnlineTime = table.Column(type: "datetime2", nullable: false), + HostSN = table.Column(type: "int", nullable: false), + KNR = table.Column(type: "nvarchar(max)", nullable: true), + VIN = table.Column(type: "nvarchar(max)", nullable: true), + VehicleModelCode = table.Column(type: "nvarchar(max)", nullable: true), + AssemblyID = table.Column(type: "uniqueidentifier", nullable: true), + BillStatus = table.Column(type: "int", nullable: false), + PrintType = table.Column(type: "int", nullable: false), + HostSN2 = table.Column(type: "int", nullable: false), + Description = table.Column(type: "nvarchar(max)", nullable: true), + ReceiveTime = table.Column(type: "datetime2", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisWaitPrint", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "FisZhuHuBanPackingList", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + BillNum = table.Column(type: "nvarchar(max)", nullable: true), + BillSerialNum = table.Column(type: "nvarchar(max)", nullable: true), + BillLocation = table.Column(type: "nvarchar(max)", nullable: true), + ProviderCode = table.Column(type: "nvarchar(max)", nullable: true), + PartType = table.Column(type: "nvarchar(max)", nullable: true), + Capacity = table.Column(type: "nvarchar(max)", nullable: true), + PrintDate = table.Column(type: "datetime2", nullable: false), + PrintType = table.Column(type: "int", nullable: false), + ProductLine = table.Column(type: "nvarchar(max)", nullable: true), + BeginVin = table.Column(type: "nvarchar(max)", nullable: true), + EndVin = table.Column(type: "nvarchar(max)", nullable: true), + BeginHostSN = table.Column(type: "nvarchar(max)", nullable: true), + EndHostSN = table.Column(type: "nvarchar(max)", nullable: true), + SortId = table.Column(type: "uniqueidentifier", nullable: true), + ReportStatus = table.Column(type: "int", nullable: false), + MinOnlineTime = table.Column(type: "datetime2", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisZhuHuBanPackingList", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerApiResources", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Name = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), + DisplayName = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + Description = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), + Enabled = table.Column(type: "bit", nullable: false), + AllowedAccessTokenSigningAlgorithms = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + ShowInDiscoveryDocument = table.Column(type: "bit", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerApiResources", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerApiScopes", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Enabled = table.Column(type: "bit", nullable: false), + Name = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), + DisplayName = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + Description = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), + Required = table.Column(type: "bit", nullable: false), + Emphasize = table.Column(type: "bit", nullable: false), + ShowInDiscoveryDocument = table.Column(type: "bit", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerApiScopes", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerClients", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ClientId = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), + ClientName = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + Description = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), + ClientUri = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: true), + LogoUri = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: true), + Enabled = table.Column(type: "bit", nullable: false), + ProtocolType = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), + RequireClientSecret = table.Column(type: "bit", nullable: false), + RequireConsent = table.Column(type: "bit", nullable: false), + AllowRememberConsent = table.Column(type: "bit", nullable: false), + AlwaysIncludeUserClaimsInIdToken = table.Column(type: "bit", nullable: false), + RequirePkce = table.Column(type: "bit", nullable: false), + AllowPlainTextPkce = table.Column(type: "bit", nullable: false), + RequireRequestObject = table.Column(type: "bit", nullable: false), + AllowAccessTokensViaBrowser = table.Column(type: "bit", nullable: false), + FrontChannelLogoutUri = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: true), + FrontChannelLogoutSessionRequired = table.Column(type: "bit", nullable: false), + BackChannelLogoutUri = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: true), + BackChannelLogoutSessionRequired = table.Column(type: "bit", nullable: false), + AllowOfflineAccess = table.Column(type: "bit", nullable: false), + IdentityTokenLifetime = table.Column(type: "int", nullable: false), + AllowedIdentityTokenSigningAlgorithms = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + AccessTokenLifetime = table.Column(type: "int", nullable: false), + AuthorizationCodeLifetime = table.Column(type: "int", nullable: false), + ConsentLifetime = table.Column(type: "int", nullable: true), + AbsoluteRefreshTokenLifetime = table.Column(type: "int", nullable: false), + SlidingRefreshTokenLifetime = table.Column(type: "int", nullable: false), + RefreshTokenUsage = table.Column(type: "int", nullable: false), + UpdateAccessTokenClaimsOnRefresh = table.Column(type: "bit", nullable: false), + RefreshTokenExpiration = table.Column(type: "int", nullable: false), + AccessTokenType = table.Column(type: "int", nullable: false), + EnableLocalLogin = table.Column(type: "bit", nullable: false), + IncludeJwtId = table.Column(type: "bit", nullable: false), + AlwaysSendClientClaims = table.Column(type: "bit", nullable: false), + ClientClaimsPrefix = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + PairWiseSubjectSalt = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + UserSsoLifetime = table.Column(type: "int", nullable: true), + UserCodeType = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + DeviceCodeLifetime = table.Column(type: "int", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerClients", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerDeviceFlowCodes", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + DeviceCode = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), + UserCode = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), + SubjectId = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + SessionId = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + ClientId = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), + Description = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + Expiration = table.Column(type: "datetime2", nullable: false), + Data = table.Column(type: "nvarchar(max)", maxLength: 50000, nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerDeviceFlowCodes", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerIdentityResources", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Name = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), + DisplayName = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + Description = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), + Enabled = table.Column(type: "bit", nullable: false), + Required = table.Column(type: "bit", nullable: false), + Emphasize = table.Column(type: "bit", nullable: false), + ShowInDiscoveryDocument = table.Column(type: "bit", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerIdentityResources", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerPersistedGrants", + columns: table => new + { + Key = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), + Type = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + SubjectId = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + SessionId = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + ClientId = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), + Description = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + Expiration = table.Column(type: "datetime2", nullable: true), + ConsumedTime = table.Column(type: "datetime2", nullable: true), + Data = table.Column(type: "nvarchar(max)", maxLength: 50000, nullable: false), + Id = table.Column(type: "uniqueidentifier", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerPersistedGrants", x => x.Key); + }); + + migrationBuilder.CreateTable( + name: "AbpAuditLogActions", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + AuditLogId = table.Column(type: "uniqueidentifier", nullable: false), + ServiceName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + MethodName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + Parameters = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: true), + ExecutionTime = table.Column(type: "datetime2", nullable: false), + ExecutionDuration = table.Column(type: "int", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpAuditLogActions", x => x.Id); + table.ForeignKey( + name: "FK_AbpAuditLogActions_AbpAuditLogs_AuditLogId", + column: x => x.AuditLogId, + principalTable: "AbpAuditLogs", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "AbpEntityChanges", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + AuditLogId = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + ChangeTime = table.Column(type: "datetime2", nullable: false), + ChangeType = table.Column(type: "tinyint", nullable: false), + EntityTenantId = table.Column(type: "uniqueidentifier", nullable: true), + EntityId = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + EntityTypeFullName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpEntityChanges", x => x.Id); + table.ForeignKey( + name: "FK_AbpEntityChanges_AbpAuditLogs_AuditLogId", + column: x => x.AuditLogId, + principalTable: "AbpAuditLogs", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "AbpOrganizationUnitRoles", + columns: table => new + { + RoleId = table.Column(type: "uniqueidentifier", nullable: false), + OrganizationUnitId = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpOrganizationUnitRoles", x => new { x.OrganizationUnitId, x.RoleId }); + table.ForeignKey( + name: "FK_AbpOrganizationUnitRoles_AbpOrganizationUnits_OrganizationUnitId", + column: x => x.OrganizationUnitId, + principalTable: "AbpOrganizationUnits", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_AbpOrganizationUnitRoles_AbpRoles_RoleId", + column: x => x.RoleId, + principalTable: "AbpRoles", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "AbpRoleClaims", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + RoleId = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + ClaimType = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + ClaimValue = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpRoleClaims", x => x.Id); + table.ForeignKey( + name: "FK_AbpRoleClaims_AbpRoles_RoleId", + column: x => x.RoleId, + principalTable: "AbpRoles", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "AbpTenantConnectionStrings", + columns: table => new + { + TenantId = table.Column(type: "uniqueidentifier", nullable: false), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Value = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpTenantConnectionStrings", x => new { x.TenantId, x.Name }); + table.ForeignKey( + name: "FK_AbpTenantConnectionStrings_AbpTenants_TenantId", + column: x => x.TenantId, + principalTable: "AbpTenants", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "AbpUserClaims", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + UserId = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + ClaimType = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + ClaimValue = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpUserClaims", x => x.Id); + table.ForeignKey( + name: "FK_AbpUserClaims_AbpUsers_UserId", + column: x => x.UserId, + principalTable: "AbpUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "AbpUserLogins", + columns: table => new + { + UserId = table.Column(type: "uniqueidentifier", nullable: false), + LoginProvider = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + ProviderKey = table.Column(type: "nvarchar(196)", maxLength: 196, nullable: false), + ProviderDisplayName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpUserLogins", x => new { x.UserId, x.LoginProvider }); + table.ForeignKey( + name: "FK_AbpUserLogins_AbpUsers_UserId", + column: x => x.UserId, + principalTable: "AbpUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "AbpUserOrganizationUnits", + columns: table => new + { + UserId = table.Column(type: "uniqueidentifier", nullable: false), + OrganizationUnitId = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpUserOrganizationUnits", x => new { x.OrganizationUnitId, x.UserId }); + table.ForeignKey( + name: "FK_AbpUserOrganizationUnits_AbpOrganizationUnits_OrganizationUnitId", + column: x => x.OrganizationUnitId, + principalTable: "AbpOrganizationUnits", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_AbpUserOrganizationUnits_AbpUsers_UserId", + column: x => x.UserId, + principalTable: "AbpUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "AbpUserRoles", + columns: table => new + { + UserId = table.Column(type: "uniqueidentifier", nullable: false), + RoleId = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpUserRoles", x => new { x.UserId, x.RoleId }); + table.ForeignKey( + name: "FK_AbpUserRoles_AbpRoles_RoleId", + column: x => x.RoleId, + principalTable: "AbpRoles", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_AbpUserRoles_AbpUsers_UserId", + column: x => x.UserId, + principalTable: "AbpUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "AbpUserTokens", + columns: table => new + { + UserId = table.Column(type: "uniqueidentifier", nullable: false), + LoginProvider = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Value = table.Column(type: "nvarchar(max)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpUserTokens", x => new { x.UserId, x.LoginProvider, x.Name }); + table.ForeignKey( + name: "FK_AbpUserTokens_AbpUsers_UserId", + column: x => x.UserId, + principalTable: "AbpUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "FisAssemblyCfgPart", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + PartCode = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + PartNum = table.Column(type: "float", nullable: true), + Description = table.Column(type: "nvarchar(max)", nullable: true), + IsKey = table.Column(type: "bit", nullable: false), + AssemblyCfgErpId = table.Column(type: "uniqueidentifier", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisAssemblyCfgPart", x => x.Id); + table.ForeignKey( + name: "FK_FisAssemblyCfgPart_FisAssemblyCfgErp_AssemblyCfgErpId", + column: x => x.AssemblyCfgErpId, + principalTable: "FisAssemblyCfgErp", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); + }); + + migrationBuilder.CreateTable( + name: "FisAssemblyCfgVehicleChild", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ErpAssemblyId = table.Column(type: "uniqueidentifier", nullable: false), + AssemblyCfgVehicleId = table.Column(type: "uniqueidentifier", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisAssemblyCfgVehicleChild", x => x.Id); + table.ForeignKey( + name: "FK_FisAssemblyCfgVehicleChild_FisAssemblyCfgVehicle_AssemblyCfgVehicleId", + column: x => x.AssemblyCfgVehicleId, + principalTable: "FisAssemblyCfgVehicle", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); + }); + + migrationBuilder.CreateTable( + name: "FisBillM100Part", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + PartCode = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + PartNum = table.Column(type: "float", nullable: true), + Description = table.Column(type: "nvarchar(max)", nullable: true), + PartType = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + PartType2 = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + PartType3 = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + BillM100Id = table.Column(type: "uniqueidentifier", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisBillM100Part", x => x.Id); + table.ForeignKey( + name: "FK_FisBillM100Part_FisBillM100_BillM100Id", + column: x => x.BillM100Id, + principalTable: "FisBillM100", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); + }); + + migrationBuilder.CreateTable( + name: "FisBillM110Part", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + PartCode = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + PartNum = table.Column(type: "float", nullable: true), + Description = table.Column(type: "nvarchar(max)", nullable: true), + BillM110Id = table.Column(type: "uniqueidentifier", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisBillM110Part", x => x.Id); + table.ForeignKey( + name: "FK_FisBillM110Part_FisBillM110_BillM110Id", + column: x => x.BillM110Id, + principalTable: "FisBillM110", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); + }); + + migrationBuilder.CreateTable( + name: "FisBillR100Part", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + PartCode = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + PartNum = table.Column(type: "float", nullable: true), + Description = table.Column(type: "nvarchar(max)", nullable: true), + PartType = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + PartType2 = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + PartType3 = table.Column(type: "nvarchar(max)", nullable: true), + BillR100Id = table.Column(type: "uniqueidentifier", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisBillR100Part", x => x.Id); + table.ForeignKey( + name: "FK_FisBillR100Part_FisBillR100_BillR100Id", + column: x => x.BillR100Id, + principalTable: "FisBillR100", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); + }); + + migrationBuilder.CreateTable( + name: "FisMenBanPackingRec", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + KNR = table.Column(type: "nvarchar(max)", nullable: true), + VIN = table.Column(type: "nvarchar(max)", nullable: true), + HostSN = table.Column(type: "nvarchar(max)", nullable: true), + VehicleModel_DoorPlankCode = table.Column(type: "nvarchar(max)", nullable: true), + TopBoxPositionNum = table.Column(type: "nvarchar(max)", nullable: true), + TopSAPMaterialNum = table.Column(type: "nvarchar(max)", nullable: true), + TopMaterialDescription = table.Column(type: "nvarchar(max)", nullable: true), + BelowSAPMaterialNum = table.Column(type: "nvarchar(max)", nullable: true), + BelowMaterialDescription = table.Column(type: "nvarchar(max)", nullable: true), + M100BillId = table.Column(type: "uniqueidentifier", nullable: true), + HostSN2 = table.Column(type: "int", nullable: false), + MenBanPackingListId = table.Column(type: "uniqueidentifier", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisMenBanPackingRec", x => x.Id); + table.ForeignKey( + name: "FK_FisMenBanPackingRec_FisMenBanPackingList_MenBanPackingListId", + column: x => x.MenBanPackingListId, + principalTable: "FisMenBanPackingList", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); + }); + + migrationBuilder.CreateTable( + name: "FisBillSortCfg", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + BillName = table.Column(type: "nvarchar(max)", nullable: true), + FileContentKeyword = table.Column(type: "nvarchar(max)", nullable: true), + MessageVersionCfgId = table.Column(type: "uniqueidentifier", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisBillSortCfg", x => x.Id); + table.ForeignKey( + name: "FK_FisBillSortCfg_FisMessageVersionCfg_MessageVersionCfgId", + column: x => x.MessageVersionCfgId, + principalTable: "FisMessageVersionCfg", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); + }); + + migrationBuilder.CreateTable( + name: "FisRepeatM100Part", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + PartCode = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + PartNum = table.Column(type: "float", nullable: true), + Description = table.Column(type: "nvarchar(max)", nullable: true), + RepeatM100Id = table.Column(type: "uniqueidentifier", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisRepeatM100Part", x => x.Id); + table.ForeignKey( + name: "FK_FisRepeatM100Part_FisRepeatM100_RepeatM100Id", + column: x => x.RepeatM100Id, + principalTable: "FisRepeatM100", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); + }); + + migrationBuilder.CreateTable( + name: "FisRepeatM110Part", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + PartCode = table.Column(type: "nvarchar(max)", nullable: true), + PartNum = table.Column(type: "float", nullable: true), + Description = table.Column(type: "nvarchar(max)", nullable: true), + RepeatM110Id = table.Column(type: "uniqueidentifier", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisRepeatM110Part", x => x.Id); + table.ForeignKey( + name: "FK_FisRepeatM110Part_FisRepeatM110_RepeatM110Id", + column: x => x.RepeatM110Id, + principalTable: "FisRepeatM110", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); + }); + + migrationBuilder.CreateTable( + name: "FisRepeatR100Part", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + PartCode = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + PartNum = table.Column(type: "float", nullable: true), + Description = table.Column(type: "nvarchar(max)", nullable: true), + RepeatR100Id = table.Column(type: "uniqueidentifier", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisRepeatR100Part", x => x.Id); + table.ForeignKey( + name: "FK_FisRepeatR100Part_FisRepeatR100_RepeatR100Id", + column: x => x.RepeatR100Id, + principalTable: "FisRepeatR100", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); + }); + + migrationBuilder.CreateTable( + name: "FisUnknownAssemblyPart", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + PartCode = table.Column(type: "varchar(50)", maxLength: 50, nullable: true), + PartNum = table.Column(type: "float", nullable: true), + Description = table.Column(type: "nvarchar(max)", nullable: true), + UnknownAssemblyId = table.Column(type: "uniqueidentifier", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisUnknownAssemblyPart", x => x.Id); + table.ForeignKey( + name: "FK_FisUnknownAssemblyPart_FisUnknownAssembly_UnknownAssemblyId", + column: x => x.UnknownAssemblyId, + principalTable: "FisUnknownAssembly", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); + }); + + migrationBuilder.CreateTable( + name: "FisZhuHuBanPackingRec", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + M100BillId = table.Column(type: "uniqueidentifier", nullable: false), + KNR = table.Column(type: "nvarchar(max)", nullable: true), + VIN = table.Column(type: "nvarchar(max)", nullable: true), + HostSN = table.Column(type: "int", nullable: true), + PartCode = table.Column(type: "nvarchar(max)", nullable: true), + PartCode2 = table.Column(type: "nvarchar(max)", nullable: true), + MaterialDescription = table.Column(type: "nvarchar(max)", nullable: true), + MaterialDescription2 = table.Column(type: "nvarchar(max)", nullable: true), + HostSN2 = table.Column(type: "int", nullable: false), + ZhuHuBanPackingListId = table.Column(type: "uniqueidentifier", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_FisZhuHuBanPackingRec", x => x.Id); + table.ForeignKey( + name: "FK_FisZhuHuBanPackingRec_FisZhuHuBanPackingList_ZhuHuBanPackingListId", + column: x => x.ZhuHuBanPackingListId, + principalTable: "FisZhuHuBanPackingList", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerApiResourceClaims", + columns: table => new + { + Type = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), + ApiResourceId = table.Column(type: "uniqueidentifier", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerApiResourceClaims", x => new { x.ApiResourceId, x.Type }); + table.ForeignKey( + name: "FK_IdentityServerApiResourceClaims_IdentityServerApiResources_ApiResourceId", + column: x => x.ApiResourceId, + principalTable: "IdentityServerApiResources", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerApiResourceProperties", + columns: table => new + { + ApiResourceId = table.Column(type: "uniqueidentifier", nullable: false), + Key = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: false), + Value = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerApiResourceProperties", x => new { x.ApiResourceId, x.Key, x.Value }); + table.ForeignKey( + name: "FK_IdentityServerApiResourceProperties_IdentityServerApiResources_ApiResourceId", + column: x => x.ApiResourceId, + principalTable: "IdentityServerApiResources", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerApiResourceScopes", + columns: table => new + { + ApiResourceId = table.Column(type: "uniqueidentifier", nullable: false), + Scope = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerApiResourceScopes", x => new { x.ApiResourceId, x.Scope }); + table.ForeignKey( + name: "FK_IdentityServerApiResourceScopes_IdentityServerApiResources_ApiResourceId", + column: x => x.ApiResourceId, + principalTable: "IdentityServerApiResources", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerApiResourceSecrets", + columns: table => new + { + Type = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: false), + Value = table.Column(type: "nvarchar(4000)", maxLength: 4000, nullable: false), + ApiResourceId = table.Column(type: "uniqueidentifier", nullable: false), + Description = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), + Expiration = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerApiResourceSecrets", x => new { x.ApiResourceId, x.Type, x.Value }); + table.ForeignKey( + name: "FK_IdentityServerApiResourceSecrets_IdentityServerApiResources_ApiResourceId", + column: x => x.ApiResourceId, + principalTable: "IdentityServerApiResources", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerApiScopeClaims", + columns: table => new + { + Type = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), + ApiScopeId = table.Column(type: "uniqueidentifier", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerApiScopeClaims", x => new { x.ApiScopeId, x.Type }); + table.ForeignKey( + name: "FK_IdentityServerApiScopeClaims_IdentityServerApiScopes_ApiScopeId", + column: x => x.ApiScopeId, + principalTable: "IdentityServerApiScopes", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerApiScopeProperties", + columns: table => new + { + ApiScopeId = table.Column(type: "uniqueidentifier", nullable: false), + Key = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: false), + Value = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerApiScopeProperties", x => new { x.ApiScopeId, x.Key, x.Value }); + table.ForeignKey( + name: "FK_IdentityServerApiScopeProperties_IdentityServerApiScopes_ApiScopeId", + column: x => x.ApiScopeId, + principalTable: "IdentityServerApiScopes", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerClientClaims", + columns: table => new + { + ClientId = table.Column(type: "uniqueidentifier", nullable: false), + Type = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: false), + Value = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerClientClaims", x => new { x.ClientId, x.Type, x.Value }); + table.ForeignKey( + name: "FK_IdentityServerClientClaims_IdentityServerClients_ClientId", + column: x => x.ClientId, + principalTable: "IdentityServerClients", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerClientCorsOrigins", + columns: table => new + { + ClientId = table.Column(type: "uniqueidentifier", nullable: false), + Origin = table.Column(type: "nvarchar(150)", maxLength: 150, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerClientCorsOrigins", x => new { x.ClientId, x.Origin }); + table.ForeignKey( + name: "FK_IdentityServerClientCorsOrigins_IdentityServerClients_ClientId", + column: x => x.ClientId, + principalTable: "IdentityServerClients", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerClientGrantTypes", + columns: table => new + { + ClientId = table.Column(type: "uniqueidentifier", nullable: false), + GrantType = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerClientGrantTypes", x => new { x.ClientId, x.GrantType }); + table.ForeignKey( + name: "FK_IdentityServerClientGrantTypes_IdentityServerClients_ClientId", + column: x => x.ClientId, + principalTable: "IdentityServerClients", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerClientIdPRestrictions", + columns: table => new + { + ClientId = table.Column(type: "uniqueidentifier", nullable: false), + Provider = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerClientIdPRestrictions", x => new { x.ClientId, x.Provider }); + table.ForeignKey( + name: "FK_IdentityServerClientIdPRestrictions_IdentityServerClients_ClientId", + column: x => x.ClientId, + principalTable: "IdentityServerClients", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerClientPostLogoutRedirectUris", + columns: table => new + { + ClientId = table.Column(type: "uniqueidentifier", nullable: false), + PostLogoutRedirectUri = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerClientPostLogoutRedirectUris", x => new { x.ClientId, x.PostLogoutRedirectUri }); + table.ForeignKey( + name: "FK_IdentityServerClientPostLogoutRedirectUris_IdentityServerClients_ClientId", + column: x => x.ClientId, + principalTable: "IdentityServerClients", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerClientProperties", + columns: table => new + { + ClientId = table.Column(type: "uniqueidentifier", nullable: false), + Key = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: false), + Value = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerClientProperties", x => new { x.ClientId, x.Key, x.Value }); + table.ForeignKey( + name: "FK_IdentityServerClientProperties_IdentityServerClients_ClientId", + column: x => x.ClientId, + principalTable: "IdentityServerClients", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerClientRedirectUris", + columns: table => new + { + ClientId = table.Column(type: "uniqueidentifier", nullable: false), + RedirectUri = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerClientRedirectUris", x => new { x.ClientId, x.RedirectUri }); + table.ForeignKey( + name: "FK_IdentityServerClientRedirectUris_IdentityServerClients_ClientId", + column: x => x.ClientId, + principalTable: "IdentityServerClients", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerClientScopes", + columns: table => new + { + ClientId = table.Column(type: "uniqueidentifier", nullable: false), + Scope = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerClientScopes", x => new { x.ClientId, x.Scope }); + table.ForeignKey( + name: "FK_IdentityServerClientScopes_IdentityServerClients_ClientId", + column: x => x.ClientId, + principalTable: "IdentityServerClients", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerClientSecrets", + columns: table => new + { + Type = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: false), + Value = table.Column(type: "nvarchar(4000)", maxLength: 4000, nullable: false), + ClientId = table.Column(type: "uniqueidentifier", nullable: false), + Description = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: true), + Expiration = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerClientSecrets", x => new { x.ClientId, x.Type, x.Value }); + table.ForeignKey( + name: "FK_IdentityServerClientSecrets_IdentityServerClients_ClientId", + column: x => x.ClientId, + principalTable: "IdentityServerClients", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerIdentityResourceClaims", + columns: table => new + { + Type = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), + IdentityResourceId = table.Column(type: "uniqueidentifier", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerIdentityResourceClaims", x => new { x.IdentityResourceId, x.Type }); + table.ForeignKey( + name: "FK_IdentityServerIdentityResourceClaims_IdentityServerIdentityResources_IdentityResourceId", + column: x => x.IdentityResourceId, + principalTable: "IdentityServerIdentityResources", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerIdentityResourceProperties", + columns: table => new + { + IdentityResourceId = table.Column(type: "uniqueidentifier", nullable: false), + Key = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: false), + Value = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerIdentityResourceProperties", x => new { x.IdentityResourceId, x.Key, x.Value }); + table.ForeignKey( + name: "FK_IdentityServerIdentityResourceProperties_IdentityServerIdentityResources_IdentityResourceId", + column: x => x.IdentityResourceId, + principalTable: "IdentityServerIdentityResources", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "AbpEntityPropertyChanges", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + EntityChangeId = table.Column(type: "uniqueidentifier", nullable: false), + NewValue = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + OriginalValue = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + PropertyName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + PropertyTypeFullName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpEntityPropertyChanges", x => x.Id); + table.ForeignKey( + name: "FK_AbpEntityPropertyChanges_AbpEntityChanges_EntityChangeId", + column: x => x.EntityChangeId, + principalTable: "AbpEntityChanges", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateIndex( + name: "IX_AbpAuditLogActions_AuditLogId", + table: "AbpAuditLogActions", + column: "AuditLogId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpAuditLogActions_TenantId_ServiceName_MethodName_ExecutionTime", + table: "AbpAuditLogActions", + columns: new[] { "TenantId", "ServiceName", "MethodName", "ExecutionTime" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpAuditLogs_TenantId_ExecutionTime", + table: "AbpAuditLogs", + columns: new[] { "TenantId", "ExecutionTime" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpAuditLogs_TenantId_UserId_ExecutionTime", + table: "AbpAuditLogs", + columns: new[] { "TenantId", "UserId", "ExecutionTime" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpBackgroundJobs_IsAbandoned_NextTryTime", + table: "AbpBackgroundJobs", + columns: new[] { "IsAbandoned", "NextTryTime" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpEntityChanges_AuditLogId", + table: "AbpEntityChanges", + column: "AuditLogId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpEntityChanges_TenantId_EntityTypeFullName_EntityId", + table: "AbpEntityChanges", + columns: new[] { "TenantId", "EntityTypeFullName", "EntityId" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpEntityPropertyChanges_EntityChangeId", + table: "AbpEntityPropertyChanges", + column: "EntityChangeId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpFeatureValues_Name_ProviderName_ProviderKey", + table: "AbpFeatureValues", + columns: new[] { "Name", "ProviderName", "ProviderKey" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpLinkUsers_SourceUserId_SourceTenantId_TargetUserId_TargetTenantId", + table: "AbpLinkUsers", + columns: new[] { "SourceUserId", "SourceTenantId", "TargetUserId", "TargetTenantId" }, + unique: true, + filter: "[SourceTenantId] IS NOT NULL AND [TargetTenantId] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_AbpOrganizationUnitRoles_RoleId_OrganizationUnitId", + table: "AbpOrganizationUnitRoles", + columns: new[] { "RoleId", "OrganizationUnitId" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpOrganizationUnits_Code", + table: "AbpOrganizationUnits", + column: "Code"); + + migrationBuilder.CreateIndex( + name: "IX_AbpOrganizationUnits_ParentId", + table: "AbpOrganizationUnits", + column: "ParentId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpPermissionGrants_Name_ProviderName_ProviderKey", + table: "AbpPermissionGrants", + columns: new[] { "Name", "ProviderName", "ProviderKey" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpRoleClaims_RoleId", + table: "AbpRoleClaims", + column: "RoleId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpRoles_NormalizedName", + table: "AbpRoles", + column: "NormalizedName"); + + migrationBuilder.CreateIndex( + name: "IX_AbpSecurityLogs_TenantId_Action", + table: "AbpSecurityLogs", + columns: new[] { "TenantId", "Action" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpSecurityLogs_TenantId_ApplicationName", + table: "AbpSecurityLogs", + columns: new[] { "TenantId", "ApplicationName" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpSecurityLogs_TenantId_Identity", + table: "AbpSecurityLogs", + columns: new[] { "TenantId", "Identity" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpSecurityLogs_TenantId_UserId", + table: "AbpSecurityLogs", + columns: new[] { "TenantId", "UserId" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpSettings_Name_ProviderName_ProviderKey", + table: "AbpSettings", + columns: new[] { "Name", "ProviderName", "ProviderKey" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpTenants_Name", + table: "AbpTenants", + column: "Name"); + + migrationBuilder.CreateIndex( + name: "IX_AbpUserClaims_UserId", + table: "AbpUserClaims", + column: "UserId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpUserLogins_LoginProvider_ProviderKey", + table: "AbpUserLogins", + columns: new[] { "LoginProvider", "ProviderKey" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpUserOrganizationUnits_UserId_OrganizationUnitId", + table: "AbpUserOrganizationUnits", + columns: new[] { "UserId", "OrganizationUnitId" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpUserRoles_RoleId_UserId", + table: "AbpUserRoles", + columns: new[] { "RoleId", "UserId" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpUsers_Email", + table: "AbpUsers", + column: "Email"); + + migrationBuilder.CreateIndex( + name: "IX_AbpUsers_NormalizedEmail", + table: "AbpUsers", + column: "NormalizedEmail"); + + migrationBuilder.CreateIndex( + name: "IX_AbpUsers_NormalizedUserName", + table: "AbpUsers", + column: "NormalizedUserName"); + + migrationBuilder.CreateIndex( + name: "IX_AbpUsers_UserName", + table: "AbpUsers", + column: "UserName"); + + migrationBuilder.CreateIndex( + name: "IX_FisAssemblyCfgPart_AssemblyCfgErpId", + table: "FisAssemblyCfgPart", + column: "AssemblyCfgErpId"); + + migrationBuilder.CreateIndex( + name: "IX_FisAssemblyCfgPart_PartCode", + table: "FisAssemblyCfgPart", + column: "PartCode"); + + migrationBuilder.CreateIndex( + name: "IX_AssemblyCfgVehicleChild_ErpAssemblyId", + table: "FisAssemblyCfgVehicleChild", + column: "ErpAssemblyId"); + + migrationBuilder.CreateIndex( + name: "IX_FisAssemblyCfgVehicleChild_AssemblyCfgVehicleId", + table: "FisAssemblyCfgVehicleChild", + column: "AssemblyCfgVehicleId"); + + migrationBuilder.CreateIndex( + name: "IX_BillM100_HostSN2", + table: "FisBillM100", + column: "HostSN"); + + migrationBuilder.CreateIndex( + name: "IX_BillM100_ProductLine2", + table: "FisBillM100", + column: "ProductLine"); + + migrationBuilder.CreateIndex( + name: "IX_BillM100_SerialNum", + table: "FisBillM100", + column: "SerialNum"); + + migrationBuilder.CreateIndex( + name: "IX_BillM100_SerialNumStr2", + table: "FisBillM100", + column: "SerialNumStr"); + + migrationBuilder.CreateIndex( + name: "IX_BillM100_VIN2", + table: "FisBillM100", + column: "VIN"); + + migrationBuilder.CreateIndex( + name: "IX_BillM100Part_PartCode2", + table: "FisBillM100Part", + column: "PartCode"); + + migrationBuilder.CreateIndex( + name: "IX_FisBillM100Part_BillM100Id", + table: "FisBillM100Part", + column: "BillM100Id"); + + migrationBuilder.CreateIndex( + name: "IX_BillM110_VIN3", + table: "FisBillM110", + column: "VIN"); + + migrationBuilder.CreateIndex( + name: "IX_BillM110Part_PartCode3", + table: "FisBillM110Part", + column: "PartCode"); + + migrationBuilder.CreateIndex( + name: "IX_FisBillM110Part_BillM110Id", + table: "FisBillM110Part", + column: "BillM110Id"); + + migrationBuilder.CreateIndex( + name: "IX_FisBillNumberRecord_ProductLine", + table: "FisBillNumberRecord", + column: "ProductLine", + unique: true, + filter: "[ProductLine] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_BillR100_HostSN1", + table: "FisBillR100", + column: "HostSN"); + + migrationBuilder.CreateIndex( + name: "IX_BillR100_KNR", + table: "FisBillR100", + column: "KNR"); + + migrationBuilder.CreateIndex( + name: "IX_BillR100_ProductLine1", + table: "FisBillR100", + column: "ProductLine"); + + migrationBuilder.CreateIndex( + name: "IX_BillR100_SerialNumStr1", + table: "FisBillR100", + column: "SerialNumStr"); + + migrationBuilder.CreateIndex( + name: "IX_BillR100Part_PartCode1", + table: "FisBillR100Part", + column: "PartCode"); + + migrationBuilder.CreateIndex( + name: "IX_FisBillR100Part_BillR100Id", + table: "FisBillR100Part", + column: "BillR100Id"); + + migrationBuilder.CreateIndex( + name: "IX_FisBillSortCfg_MessageVersionCfgId", + table: "FisBillSortCfg", + column: "MessageVersionCfgId"); + + migrationBuilder.CreateIndex( + name: "IX_DicItem_DicItemCode", + table: "FisDicItem", + column: "DicItemCode"); + + migrationBuilder.CreateIndex( + name: "IX_DicItem_DicTypeCode", + table: "FisDicItem", + column: "DicTypeCode"); + + migrationBuilder.CreateIndex( + name: "IX_DicType_DicTypeCode", + table: "FisDicType", + column: "DicTypeCode"); + + migrationBuilder.CreateIndex( + name: "IX_ImportRecHis_HostSN", + table: "FisImportRecordHis", + column: "HostSN"); + + migrationBuilder.CreateIndex( + name: "IX_FisLineSN_ProductType_ProductLine_PartType", + table: "FisLineSN", + columns: new[] { "ProductType", "ProductLine", "PartType" }, + unique: true, + filter: "[ProductLine] IS NOT NULL AND [PartType] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_MaterialExt_MaterialNum", + table: "FisMaterialExt", + column: "MaterialNum"); + + migrationBuilder.CreateIndex( + name: "IX_MaterialExt_MaterialType", + table: "FisMaterialExt", + column: "MaterialType"); + + migrationBuilder.CreateIndex( + name: "IX_MaterialExt_MaterialType2", + table: "FisMaterialExt", + column: "MaterialType2"); + + migrationBuilder.CreateIndex( + name: "IX_MaterialExt_MaterialType3", + table: "FisMaterialExt", + column: "MaterialType3"); + + migrationBuilder.CreateIndex( + name: "IX_MaterialExt_RelationKey", + table: "FisMaterialExt", + column: "RelationKey"); + + migrationBuilder.CreateIndex( + name: "IX_MaterialExt_VehicleModel", + table: "FisMaterialExt", + column: "VehicleModel"); + + migrationBuilder.CreateIndex( + name: "IX_FisMenBanPackingRec_MenBanPackingListId", + table: "FisMenBanPackingRec", + column: "MenBanPackingListId"); + + migrationBuilder.CreateIndex( + name: "IX_PartCfg_PartCode", + table: "FisPartCfg", + column: "PartCode"); + + migrationBuilder.CreateIndex( + name: "IX_PartCfg_PartType", + table: "FisPartCfg", + column: "PartType"); + + migrationBuilder.CreateIndex( + name: "IX_PartCfg_PartType2", + table: "FisPartCfg", + column: "PartType2"); + + migrationBuilder.CreateIndex( + name: "IX_PartCfg_PartType3", + table: "FisPartCfg", + column: "PartType3"); + + migrationBuilder.CreateIndex( + name: "IX_FisPrintTemplateConfiguration_GroupName_PartType", + table: "FisPrintTemplateConfiguration", + columns: new[] { "GroupName", "PartType" }, + unique: true, + filter: "[GroupName] IS NOT NULL AND [PartType] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_ProductLine_ProductLineCode", + table: "FisProductLine", + column: "ProductLineCode"); + + migrationBuilder.CreateIndex( + name: "IX_RepeatM100_HostSN", + table: "FisRepeatM100", + column: "HostSN"); + + migrationBuilder.CreateIndex( + name: "IX_RepeatM100_KNR", + table: "FisRepeatM100", + column: "KNR"); + + migrationBuilder.CreateIndex( + name: "IX_RepeatM100_ProductLine", + table: "FisRepeatM100", + column: "ProductLine"); + + migrationBuilder.CreateIndex( + name: "IX_RepeatM100_VIN", + table: "FisRepeatM100", + column: "VIN"); + + migrationBuilder.CreateIndex( + name: "IX_FisRepeatM100Part_RepeatM100Id", + table: "FisRepeatM100Part", + column: "RepeatM100Id"); + + migrationBuilder.CreateIndex( + name: "IX_RepeatM100Part_PartCode", + table: "FisRepeatM100Part", + column: "PartCode"); + + migrationBuilder.CreateIndex( + name: "IX_FisRepeatM110Part_RepeatM110Id", + table: "FisRepeatM110Part", + column: "RepeatM110Id"); + + migrationBuilder.CreateIndex( + name: "IX_RepeatR100_HostSN", + table: "FisRepeatR100", + column: "HostSN"); + + migrationBuilder.CreateIndex( + name: "IX_RepeatR100_KNR", + table: "FisRepeatR100", + column: "KNR"); + + migrationBuilder.CreateIndex( + name: "IX_RepeatR100_ProductLine", + table: "FisRepeatR100", + column: "ProductLine"); + + migrationBuilder.CreateIndex( + name: "IX_FisRepeatR100Part_RepeatR100Id", + table: "FisRepeatR100Part", + column: "RepeatR100Id"); + + migrationBuilder.CreateIndex( + name: "IX_RepeatR100Part_PartCode", + table: "FisRepeatR100Part", + column: "PartCode"); + + migrationBuilder.CreateIndex( + name: "IX_FisUnknownAssemblyPart_UnknownAssemblyId", + table: "FisUnknownAssemblyPart", + column: "UnknownAssemblyId"); + + migrationBuilder.CreateIndex( + name: "IX_UnknownAssemblyPart_PartCode", + table: "FisUnknownAssemblyPart", + column: "PartCode"); + + migrationBuilder.CreateIndex( + name: "IX_FisZhuHuBanPackingRec_ZhuHuBanPackingListId", + table: "FisZhuHuBanPackingRec", + column: "ZhuHuBanPackingListId"); + + migrationBuilder.CreateIndex( + name: "IX_IdentityServerClients_ClientId", + table: "IdentityServerClients", + column: "ClientId"); + + migrationBuilder.CreateIndex( + name: "IX_IdentityServerDeviceFlowCodes_DeviceCode", + table: "IdentityServerDeviceFlowCodes", + column: "DeviceCode", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_IdentityServerDeviceFlowCodes_Expiration", + table: "IdentityServerDeviceFlowCodes", + column: "Expiration"); + + migrationBuilder.CreateIndex( + name: "IX_IdentityServerDeviceFlowCodes_UserCode", + table: "IdentityServerDeviceFlowCodes", + column: "UserCode"); + + migrationBuilder.CreateIndex( + name: "IX_IdentityServerPersistedGrants_Expiration", + table: "IdentityServerPersistedGrants", + column: "Expiration"); + + migrationBuilder.CreateIndex( + name: "IX_IdentityServerPersistedGrants_SubjectId_ClientId_Type", + table: "IdentityServerPersistedGrants", + columns: new[] { "SubjectId", "ClientId", "Type" }); + + migrationBuilder.CreateIndex( + name: "IX_IdentityServerPersistedGrants_SubjectId_SessionId_Type", + table: "IdentityServerPersistedGrants", + columns: new[] { "SubjectId", "SessionId", "Type" }); + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropTable( + name: "AbpAuditLogActions"); + + migrationBuilder.DropTable( + name: "AbpBackgroundJobs"); + + migrationBuilder.DropTable( + name: "AbpClaimTypes"); + + migrationBuilder.DropTable( + name: "AbpEntityPropertyChanges"); + + migrationBuilder.DropTable( + name: "AbpFeatureValues"); + + migrationBuilder.DropTable( + name: "AbpLinkUsers"); + + migrationBuilder.DropTable( + name: "AbpOrganizationUnitRoles"); + + migrationBuilder.DropTable( + name: "AbpPermissionGrants"); + + migrationBuilder.DropTable( + name: "AbpRoleClaims"); + + migrationBuilder.DropTable( + name: "AbpSecurityLogs"); + + migrationBuilder.DropTable( + name: "AbpSettings"); + + migrationBuilder.DropTable( + name: "AbpTenantConnectionStrings"); + + migrationBuilder.DropTable( + name: "AbpUserClaims"); + + migrationBuilder.DropTable( + name: "AbpUserLogins"); + + migrationBuilder.DropTable( + name: "AbpUserOrganizationUnits"); + + migrationBuilder.DropTable( + name: "AbpUserRoles"); + + migrationBuilder.DropTable( + name: "AbpUserTokens"); + + migrationBuilder.DropTable( + name: "FisAlreadyPrint"); + + migrationBuilder.DropTable( + name: "FisAssemblyCfgGroup"); + + migrationBuilder.DropTable( + name: "FisAssemblyCfgPart"); + + migrationBuilder.DropTable( + name: "FisAssemblyCfgVehicleChild"); + + migrationBuilder.DropTable( + name: "FisBillM100Part"); + + migrationBuilder.DropTable( + name: "FisBillM110Part"); + + migrationBuilder.DropTable( + name: "FisBillNumberRecord"); + + migrationBuilder.DropTable( + name: "FisBillR100Part"); + + migrationBuilder.DropTable( + name: "FisBillSortCfg"); + + migrationBuilder.DropTable( + name: "FisBooks"); + + migrationBuilder.DropTable( + name: "FisDicItem"); + + migrationBuilder.DropTable( + name: "FisDicType"); + + migrationBuilder.DropTable( + name: "FisExcludePartCfg"); + + migrationBuilder.DropTable( + name: "FisGlobalSettings"); + + migrationBuilder.DropTable( + name: "FisImportRecord"); + + migrationBuilder.DropTable( + name: "FisImportRecordHis"); + + migrationBuilder.DropTable( + name: "FisLastImportHostSN"); + + migrationBuilder.DropTable( + name: "FisLineSN"); + + migrationBuilder.DropTable( + name: "FisLogRemind"); + + migrationBuilder.DropTable( + name: "FisMaterialExt"); + + migrationBuilder.DropTable( + name: "FisMenBanPackingRec"); + + migrationBuilder.DropTable( + name: "FisMessageReceive"); + + migrationBuilder.DropTable( + name: "FisMessageReceiveArchive"); + + migrationBuilder.DropTable( + name: "FisNotMatchTempBill"); + + migrationBuilder.DropTable( + name: "FisPartCfg"); + + migrationBuilder.DropTable( + name: "FisPartSwitch"); + + migrationBuilder.DropTable( + name: "FisPrintTemplateConfiguration"); + + migrationBuilder.DropTable( + name: "FisProductLine"); + + migrationBuilder.DropTable( + name: "FisRepeatM100Part"); + + migrationBuilder.DropTable( + name: "FisRepeatM110Part"); + + migrationBuilder.DropTable( + name: "FisRepeatR100Part"); + + migrationBuilder.DropTable( + name: "FisSequenceInfo"); + + migrationBuilder.DropTable( + name: "FisTB_BILL"); + + migrationBuilder.DropTable( + name: "FisTB_BILL_HIS"); + + migrationBuilder.DropTable( + name: "FisTB_BILL_SCRAP"); + + migrationBuilder.DropTable( + name: "FisTransmissionModeCfg"); + + migrationBuilder.DropTable( + name: "FisTS_SORT_DETAIL"); + + migrationBuilder.DropTable( + name: "FisTS_SORT_DETAIL_HIS"); + + migrationBuilder.DropTable( + name: "FisUnknownAssemblyPart"); + + migrationBuilder.DropTable( + name: "FisUser2ProductLine"); + + migrationBuilder.DropTable( + name: "FisWaitPrint"); + + migrationBuilder.DropTable( + name: "FisZhuHuBanPackingRec"); + + migrationBuilder.DropTable( + name: "IdentityServerApiResourceClaims"); + + migrationBuilder.DropTable( + name: "IdentityServerApiResourceProperties"); + + migrationBuilder.DropTable( + name: "IdentityServerApiResourceScopes"); + + migrationBuilder.DropTable( + name: "IdentityServerApiResourceSecrets"); + + migrationBuilder.DropTable( + name: "IdentityServerApiScopeClaims"); + + migrationBuilder.DropTable( + name: "IdentityServerApiScopeProperties"); + + migrationBuilder.DropTable( + name: "IdentityServerClientClaims"); + + migrationBuilder.DropTable( + name: "IdentityServerClientCorsOrigins"); + + migrationBuilder.DropTable( + name: "IdentityServerClientGrantTypes"); + + migrationBuilder.DropTable( + name: "IdentityServerClientIdPRestrictions"); + + migrationBuilder.DropTable( + name: "IdentityServerClientPostLogoutRedirectUris"); + + migrationBuilder.DropTable( + name: "IdentityServerClientProperties"); + + migrationBuilder.DropTable( + name: "IdentityServerClientRedirectUris"); + + migrationBuilder.DropTable( + name: "IdentityServerClientScopes"); + + migrationBuilder.DropTable( + name: "IdentityServerClientSecrets"); + + migrationBuilder.DropTable( + name: "IdentityServerDeviceFlowCodes"); + + migrationBuilder.DropTable( + name: "IdentityServerIdentityResourceClaims"); + + migrationBuilder.DropTable( + name: "IdentityServerIdentityResourceProperties"); + + migrationBuilder.DropTable( + name: "IdentityServerPersistedGrants"); + + migrationBuilder.DropTable( + name: "AbpEntityChanges"); + + migrationBuilder.DropTable( + name: "AbpTenants"); + + migrationBuilder.DropTable( + name: "AbpOrganizationUnits"); + + migrationBuilder.DropTable( + name: "AbpRoles"); + + migrationBuilder.DropTable( + name: "AbpUsers"); + + migrationBuilder.DropTable( + name: "FisAssemblyCfgErp"); + + migrationBuilder.DropTable( + name: "FisAssemblyCfgVehicle"); + + migrationBuilder.DropTable( + name: "FisBillM100"); + + migrationBuilder.DropTable( + name: "FisBillM110"); + + migrationBuilder.DropTable( + name: "FisBillR100"); + + migrationBuilder.DropTable( + name: "FisMessageVersionCfg"); + + migrationBuilder.DropTable( + name: "FisMenBanPackingList"); + + migrationBuilder.DropTable( + name: "FisRepeatM100"); + + migrationBuilder.DropTable( + name: "FisRepeatM110"); + + migrationBuilder.DropTable( + name: "FisRepeatR100"); + + migrationBuilder.DropTable( + name: "FisUnknownAssembly"); + + migrationBuilder.DropTable( + name: "FisZhuHuBanPackingList"); + + migrationBuilder.DropTable( + name: "IdentityServerApiResources"); + + migrationBuilder.DropTable( + name: "IdentityServerApiScopes"); + + migrationBuilder.DropTable( + name: "IdentityServerClients"); + + migrationBuilder.DropTable( + name: "IdentityServerIdentityResources"); + + migrationBuilder.DropTable( + name: "AbpAuditLogs"); + } + } +} diff --git a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/Migrations/NewJitMigrationsDbContextModelSnapshot.cs b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/Migrations/NewJitMigrationsDbContextModelSnapshot.cs index 56ec9e8..cf3691a 100644 --- a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/Migrations/NewJitMigrationsDbContextModelSnapshot.cs +++ b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/Migrations/NewJitMigrationsDbContextModelSnapshot.cs @@ -2015,6 +2015,265 @@ namespace WY.NewJit.Migrations b.ToTable("FisSequenceInfo"); }); + modelBuilder.Entity("WY.NewJit.EdiReceive.Entitys.ImportRecord", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreatePerson") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("ExteriorTrimmingColor") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("Factory") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("HostSN") + .HasColumnType("int"); + + b.Property("ImportPerson") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ImportTime") + .HasMaxLength(50) + .HasColumnType("datetime2"); + + b.Property("InteriorColor") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("OnlineTime") + .HasColumnType("datetime"); + + b.Property("PaintOfflineTime") + .HasColumnType("datetime"); + + b.Property("ProductLine") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("Remark") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("Remark2") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("Remark3") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("Remark4") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("Remark5") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("SerialNum") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("Spec") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("SpecDesc") + .HasMaxLength(200) + .HasColumnType("nvarchar(200)"); + + b.Property("Target") + .HasMaxLength(200) + .HasColumnType("nvarchar(200)"); + + b.Property("Type") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("VehicleBodyCode") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("VehicleLocation") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("VehicleModelCode") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("VehicleModelDesc") + .HasMaxLength(200) + .HasColumnType("nvarchar(200)"); + + b.Property("VehicleModelName") + .HasMaxLength(200) + .HasColumnType("nvarchar(200)"); + + b.Property("Vin") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("WorkLocation") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.HasKey("Id"); + + b.ToTable("FisImportRecord"); + }); + + modelBuilder.Entity("WY.NewJit.EdiReceive.Entitys.ImportRecordHis", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("CreatePerson") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("ExteriorTrimmingColor") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("Factory") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("HostSN") + .HasColumnType("int"); + + b.Property("ImportPerson") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("ImportTime") + .HasMaxLength(50) + .HasColumnType("datetime2"); + + b.Property("InteriorColor") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("OnlineTime") + .HasColumnType("datetime"); + + b.Property("PaintOfflineTime") + .HasColumnType("datetime"); + + b.Property("ProductLine") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("Remark") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("Remark2") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("Remark3") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("Remark4") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("Remark5") + .HasMaxLength(200) + .HasColumnType("varchar(200)"); + + b.Property("SerialNum") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("Spec") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("SpecDesc") + .HasMaxLength(200) + .HasColumnType("nvarchar(200)"); + + b.Property("Target") + .HasMaxLength(200) + .HasColumnType("nvarchar(200)"); + + b.Property("Type") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("VehicleBodyCode") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("VehicleLocation") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("VehicleModelCode") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("VehicleModelDesc") + .HasMaxLength(200) + .HasColumnType("nvarchar(200)"); + + b.Property("VehicleModelName") + .HasMaxLength(200) + .HasColumnType("nvarchar(200)"); + + b.Property("Vin") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("WorkLocation") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.HasKey("Id"); + + b.HasIndex("HostSN") + .HasDatabaseName("IX_ImportRecHis_HostSN"); + + b.ToTable("FisImportRecordHis"); + }); + + modelBuilder.Entity("WY.NewJit.EdiReceive.Entitys.LastImportHostSN", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("HostSN") + .HasColumnType("int"); + + b.Property("ProductLineCode") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.HasKey("Id"); + + b.ToTable("FisLastImportHostSN"); + }); + modelBuilder.Entity("WY.NewJit.Extends.MenBanPackingList", b => { b.Property("Id") @@ -2155,6 +2414,9 @@ namespace WY.NewJit.Migrations b.Property("HostSN") .HasColumnType("nvarchar(max)"); + b.Property("HostSN2") + .HasColumnType("int"); + b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") @@ -2200,51 +2462,12 @@ namespace WY.NewJit.Migrations b.ToTable("FisMenBanPackingRec"); }); - modelBuilder.Entity("WY.NewJit.Extends.MenBanPackingRec2", b => + modelBuilder.Entity("WY.NewJit.Extends.PaiGe.MaterialExt", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); - b.Property("Column00") - .HasColumnType("nvarchar(max)"); - - b.Property("Column01") - .HasColumnType("nvarchar(max)"); - - b.Property("Column02") - .HasColumnType("nvarchar(max)"); - - b.Property("Column03") - .HasColumnType("nvarchar(max)"); - - b.Property("Column04") - .HasColumnType("nvarchar(max)"); - - b.Property("Column05") - .HasColumnType("nvarchar(max)"); - - b.Property("Column06") - .HasColumnType("nvarchar(max)"); - - b.Property("Column07") - .HasColumnType("nvarchar(max)"); - - b.Property("Column08") - .HasColumnType("nvarchar(max)"); - - b.Property("Column09") - .HasColumnType("nvarchar(max)"); - - b.Property("Column10") - .HasColumnType("nvarchar(max)"); - - b.Property("Column11") - .HasColumnType("nvarchar(max)"); - - b.Property("Column12") - .HasColumnType("nvarchar(max)"); - b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) @@ -2285,28 +2508,86 @@ namespace WY.NewJit.Migrations .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); - b.HasKey("Id"); + b.Property("MaterialDescription") + .HasColumnType("nvarchar(max)"); - b.ToTable("FisMenBanPackingRec2"); - }); + b.Property("MaterialDescription2") + .HasColumnType("nvarchar(max)"); - modelBuilder.Entity("WY.NewJit.Extends.PaiGe.Fis.CUR_TB_BILL", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); + b.Property("MaterialGroup") + .HasColumnType("nvarchar(max)"); - b.Property("AccountDate") + b.Property("MaterialMemo") + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialNum") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("MaterialType") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialType2") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialType3") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("RelationKey") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("UpdateTime") .HasColumnType("datetime2"); + b.Property("VehicleModel") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("promo") + .HasColumnType("nvarchar(max)"); + + b.HasKey("Id"); + + b.HasIndex("MaterialNum") + .HasDatabaseName("IX_MaterialExt_MaterialNum"); + + b.HasIndex("MaterialType") + .HasDatabaseName("IX_MaterialExt_MaterialType"); + + b.HasIndex("MaterialType2") + .HasDatabaseName("IX_MaterialExt_MaterialType2"); + + b.HasIndex("MaterialType3") + .HasDatabaseName("IX_MaterialExt_MaterialType3"); + + b.HasIndex("RelationKey") + .HasDatabaseName("IX_MaterialExt_RelationKey"); + + b.HasIndex("VehicleModel") + .HasDatabaseName("IX_MaterialExt_VehicleModel"); + + b.ToTable("FisMaterialExt"); + }); + + modelBuilder.Entity("WY.NewJit.Extends.PaiGe.WMS.FisTB_BILL", b => + { b.Property("BillNum") - .IsRequired() .HasMaxLength(50) .HasColumnType("nvarchar(50)"); + b.Property("AccountDate") + .HasColumnType("datetime2"); + b.Property("BillTime") .HasColumnType("datetime2"); + b.Property("BillType") + .HasColumnType("int"); + b.Property("CustId") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); @@ -2318,6 +2599,10 @@ namespace WY.NewJit.Migrations .HasMaxLength(50) .HasColumnType("nvarchar(50)"); + b.Property("ExecuteRemark") + .HasMaxLength(200) + .HasColumnType("nvarchar(200)"); + b.Property("FinishTime") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); @@ -2333,6 +2618,9 @@ namespace WY.NewJit.Migrations .HasMaxLength(50) .HasColumnType("nvarchar(50)"); + b.Property("IsExecute") + .HasColumnType("bit"); + b.Property("OperName") .IsRequired() .HasMaxLength(50) @@ -2363,6 +2651,9 @@ namespace WY.NewJit.Migrations b.Property("State") .HasColumnType("int"); + b.Property("SubBillType") + .HasColumnType("int"); + b.Property("TransportType") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); @@ -2372,216 +2663,246 @@ namespace WY.NewJit.Migrations .HasColumnType("nvarchar(50)"); b.Property("UID") + .ValueGeneratedOnAddOrUpdate() .HasColumnType("int"); b.Property("VendId") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.HasKey("Id"); + b.HasKey("BillNum"); - b.ToTable("FisCUR_TB_BILL"); + b.ToTable("FisTB_BILL"); }); - modelBuilder.Entity("WY.NewJit.Extends.PaiGe.Fis.CUR_TS_SORT_DETAIL", b => + modelBuilder.Entity("WY.NewJit.Extends.PaiGe.WMS.FisTB_BILL_HIS", b => { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") + b.Property("BillNum") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("BillNum") - .IsRequired() + b.Property("AccountDate") + .HasColumnType("datetime2"); + + b.Property("BillTime") + .HasColumnType("datetime2"); + + b.Property("BillType") + .HasColumnType("int"); + + b.Property("CustId") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("CustBarCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + b.Property("DetailQty") + .HasColumnType("int"); - b.Property("CustPartCode") + b.Property("DockCode") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("DispatchDate") + b.Property("FinishTime") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("Dock") + b.Property("GUID") + .HasColumnType("uniqueidentifier"); + + b.Property("GateCode") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("FullBarCode") + b.Property("GateName") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("OperName") .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.Property("FyonNum") + b.Property("ProjectId") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("LineNum") - .HasColumnType("int"); + b.Property("Remark") + .HasColumnType("nvarchar(max)"); - b.Property("PartCode") - .IsRequired() + b.Property("SourceBillNum") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("PlanQty") - .HasColumnType("money"); - - b.Property("ProjectId") - .IsRequired() + b.Property("SourceBillNum2") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("Qty") - .HasColumnType("money"); + b.Property("SourceBillNum3") + .HasColumnType("nvarchar(max)"); - b.Property("ReceiptQty") - .HasColumnType("money"); + b.Property("StartTime") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.Property("Remark") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); + b.Property("State") + .HasColumnType("int"); - b.Property("SeqNum") - .IsRequired() + b.Property("SubBillType") + .HasColumnType("int"); + + b.Property("TransportType") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("State") - .IsRequired() + b.Property("TruckNum") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("UID") + b.Property("UID") .ValueGeneratedOnAddOrUpdate() - .HasColumnType("bigint"); + .HasColumnType("int"); b.Property("VendId") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("VinCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); + b.HasKey("BillNum"); - b.ToTable("FisCUR_TS_SORT_DETAIL"); + b.ToTable("FisTB_BILL_HIS"); }); - modelBuilder.Entity("WY.NewJit.Extends.PaiGe.Fis.HIS_TB_BILL", b => + modelBuilder.Entity("WY.NewJit.Extends.PaiGe.WMS.FisTB_BILL_SCRAP", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); - b.Property("AccountDate") - .HasColumnType("datetime2"); - b.Property("BillNum") .IsRequired() .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasColumnType("varchar(50)"); - b.Property("BillTime") + b.Property("CreateTime") .HasColumnType("datetime2"); - b.Property("CustId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + b.Property("ExecuteTime") + .HasColumnType("datetime2"); - b.Property("DetailQty") - .HasColumnType("int"); + b.Property("IsExecute") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); - b.Property("DockCode") + b.Property("Remark") + .HasMaxLength(200) + .HasColumnType("nvarchar(200)"); + + b.HasKey("Id"); + + b.ToTable("FisTB_BILL_SCRAP"); + }); + + modelBuilder.Entity("WY.NewJit.Extends.PaiGe.WMS.FisTS_SORT_DETAIL", b => + { + b.Property("BillNum") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("FinishTime") + b.Property("VinCode") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("GUID") - .HasColumnType("uniqueidentifier"); - - b.Property("GateCode") + b.Property("PartCode") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("GateName") + b.Property("BarCode") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("OperName") - .IsRequired() + b.Property("CustBarCode") + .HasMaxLength(200) + .HasColumnType("nvarchar(200)"); + + b.Property("CustPartCode") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("ProjectId") + b.Property("DispatchDate") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SourceBillNum") + b.Property("Dock") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("SourceBillNum2") + b.Property("FullBarCode") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("nvarchar(200)"); + + b.Property("FyonNum") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("SourceBillNum3") - .HasColumnType("nvarchar(max)"); + b.Property("LineNum") + .HasColumnType("int"); - b.Property("StartTime") + b.Property("PlanQty") + .HasColumnType("money"); + + b.Property("ProjectId") + .IsRequired() .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("State") - .HasColumnType("int"); + b.Property("Qty") + .HasColumnType("money"); - b.Property("TransportType") + b.Property("ReceiptQty") + .HasColumnType("money"); + + b.Property("Remark") + .HasMaxLength(200) + .HasColumnType("nvarchar(200)"); + + b.Property("SeqNum") + .IsRequired() .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("TruckNum") + b.Property("State") + .IsRequired() .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("UID") - .HasColumnType("int"); + b.Property("UID") + .ValueGeneratedOnAddOrUpdate() + .HasColumnType("bigint"); b.Property("VendId") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.HasKey("Id"); + b.HasKey("BillNum", "VinCode", "PartCode"); - b.ToTable("FisHIS_TB_BILL"); + b.ToTable("FisTS_SORT_DETAIL"); }); - modelBuilder.Entity("WY.NewJit.Extends.PaiGe.Fis.HIS_TS_SORT_DETAIL", b => + modelBuilder.Entity("WY.NewJit.Extends.PaiGe.WMS.FisTS_SORT_DETAIL_HIS", b => { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); + b.Property("BillNum") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.Property("BarCode") + b.Property("VinCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("PartCode") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("BillNum") - .IsRequired() + b.Property("BarCode") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); @@ -2613,11 +2934,6 @@ namespace WY.NewJit.Migrations b.Property("LineNum") .HasColumnType("int"); - b.Property("PartCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - b.Property("PlanQty") .HasColumnType("money"); @@ -2654,125 +2970,9 @@ namespace WY.NewJit.Migrations .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("VinCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("FisHIS_TS_SORT_DETAIL"); - }); - - modelBuilder.Entity("WY.NewJit.Extends.PaiGe.MaterialExt", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDescription") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription2") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialGroup") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialMemo") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialNum") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("MaterialType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialType2") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialType3") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RelationKey") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("VehicleModel") - .HasMaxLength(50) - .HasColumnType("varchar(50)"); - - b.Property("promo") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialNum") - .HasDatabaseName("IX_MaterialExt_MaterialNum"); - - b.HasIndex("MaterialType") - .HasDatabaseName("IX_MaterialExt_MaterialType"); - - b.HasIndex("MaterialType2") - .HasDatabaseName("IX_MaterialExt_MaterialType2"); - - b.HasIndex("MaterialType3") - .HasDatabaseName("IX_MaterialExt_MaterialType3"); - - b.HasIndex("RelationKey") - .HasDatabaseName("IX_MaterialExt_RelationKey"); - - b.HasIndex("VehicleModel") - .HasDatabaseName("IX_MaterialExt_VehicleModel"); + b.HasKey("BillNum", "VinCode", "PartCode"); - b.ToTable("FisMaterialExt"); + b.ToTable("FisTS_SORT_DETAIL_HIS"); }); modelBuilder.Entity("WY.NewJit.Extends.ProductLine", b => @@ -2962,178 +3162,47 @@ namespace WY.NewJit.Migrations .HasColumnName("IsDeleted"); b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MinOnlineTime") - .HasColumnType("datetime2"); - - b.Property("PartType") - .HasColumnType("nvarchar(max)"); - - b.Property("PrintDate") - .HasColumnType("datetime2"); - - b.Property("PrintType") - .HasColumnType("int"); - - b.Property("ProductLine") - .HasColumnType("nvarchar(max)"); - - b.Property("ProviderCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ReportStatus") - .HasColumnType("int"); - - b.Property("SortId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.ToTable("FisZhuHuBanPackingList"); - }); - - modelBuilder.Entity("WY.NewJit.Extends.ZhuHuBanPackingRec", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HostSN") - .HasColumnType("int"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KNR") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("M100BillId") - .HasColumnType("uniqueidentifier"); - - b.Property("MaterialDescription") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription2") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode2") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(max)"); - - b.Property("ZhuHuBanPackingListId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ZhuHuBanPackingListId"); - - b.ToTable("FisZhuHuBanPackingRec"); - }); - - modelBuilder.Entity("WY.NewJit.Extends.ZhuHuBanPackingRec2", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Column00") - .HasColumnType("nvarchar(max)"); - - b.Property("Column01") - .HasColumnType("nvarchar(max)"); - - b.Property("Column02") - .HasColumnType("nvarchar(max)"); - - b.Property("Column03") - .HasColumnType("nvarchar(max)"); - - b.Property("Column04") - .HasColumnType("nvarchar(max)"); + .HasColumnType("datetime2") + .HasColumnName("LastModificationTime"); - b.Property("Column05") - .HasColumnType("nvarchar(max)"); + b.Property("LastModifierId") + .HasColumnType("uniqueidentifier") + .HasColumnName("LastModifierId"); - b.Property("Column06") - .HasColumnType("nvarchar(max)"); + b.Property("MinOnlineTime") + .HasColumnType("datetime2"); - b.Property("Column07") + b.Property("PartType") .HasColumnType("nvarchar(max)"); - b.Property("Column08") - .HasColumnType("nvarchar(max)"); + b.Property("PrintDate") + .HasColumnType("datetime2"); - b.Property("Column09") - .HasColumnType("nvarchar(max)"); + b.Property("PrintType") + .HasColumnType("int"); - b.Property("Column10") + b.Property("ProductLine") .HasColumnType("nvarchar(max)"); - b.Property("Column11") + b.Property("ProviderCode") .HasColumnType("nvarchar(max)"); - b.Property("Column12") - .HasColumnType("nvarchar(max)"); + b.Property("ReportStatus") + .HasColumnType("int"); - b.Property("Column13") - .HasColumnType("nvarchar(max)"); + b.Property("SortId") + .HasColumnType("uniqueidentifier"); - b.Property("Column14") - .HasColumnType("nvarchar(max)"); + b.HasKey("Id"); - b.Property("Column15") - .HasColumnType("nvarchar(max)"); + b.ToTable("FisZhuHuBanPackingList"); + }); - b.Property("Column16") - .HasColumnType("nvarchar(max)"); + modelBuilder.Entity("WY.NewJit.Extends.ZhuHuBanPackingRec", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() @@ -3161,12 +3230,21 @@ namespace WY.NewJit.Migrations .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); + b.Property("HostSN") + .HasColumnType("int"); + + b.Property("HostSN2") + .HasColumnType("int"); + b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); + b.Property("KNR") + .HasColumnType("nvarchar(max)"); + b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); @@ -3175,9 +3253,32 @@ namespace WY.NewJit.Migrations .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); + b.Property("M100BillId") + .HasColumnType("uniqueidentifier"); + + b.Property("MaterialDescription") + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialDescription2") + .HasColumnType("nvarchar(max)"); + + b.Property("PartCode") + .HasColumnType("nvarchar(max)"); + + b.Property("PartCode2") + .HasColumnType("nvarchar(max)"); + + b.Property("VIN") + .HasColumnType("nvarchar(max)"); + + b.Property("ZhuHuBanPackingListId") + .HasColumnType("uniqueidentifier"); + b.HasKey("Id"); - b.ToTable("FisZhuHuBanPackingRec2"); + b.HasIndex("ZhuHuBanPackingListId"); + + b.ToTable("FisZhuHuBanPackingRec"); }); modelBuilder.Entity("WY.NewJit.MsgBaseData.AssemblyCfgErp", b => @@ -4019,6 +4120,62 @@ namespace WY.NewJit.Migrations b.ToTable("FisPartSwitch"); }); + modelBuilder.Entity("WY.NewJit.MsgBaseData.PrintTemplateConfiguration", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("ConcurrencyStamp") + .IsConcurrencyToken() + .HasMaxLength(40) + .HasColumnType("nvarchar(40)") + .HasColumnName("ConcurrencyStamp"); + + b.Property("CreationTime") + .HasColumnType("datetime2") + .HasColumnName("CreationTime"); + + b.Property("CreatorId") + .HasColumnType("uniqueidentifier") + .HasColumnName("CreatorId"); + + b.Property("ExtraProperties") + .HasColumnType("nvarchar(max)") + .HasColumnName("ExtraProperties"); + + b.Property("GroupCode") + .HasColumnType("int"); + + b.Property("GroupName") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2") + .HasColumnName("LastModificationTime"); + + b.Property("LastModifierId") + .HasColumnType("uniqueidentifier") + .HasColumnName("LastModifierId"); + + b.Property("PartType") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("TemplateName") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.HasKey("Id"); + + b.HasIndex("GroupName", "PartType") + .IsUnique() + .HasFilter("[GroupName] IS NOT NULL AND [PartType] IS NOT NULL"); + + b.ToTable("FisPrintTemplateConfiguration"); + }); + modelBuilder.Entity("WY.NewJit.MsgCheck.BillM100", b => { b.Property("Id") @@ -4331,6 +4488,37 @@ namespace WY.NewJit.Migrations b.ToTable("FisBillM110Part"); }); + modelBuilder.Entity("WY.NewJit.MsgCheck.BillNumberRecord", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("InsertedRows") + .HasColumnType("int"); + + b.Property("ProductLine") + .HasMaxLength(50) + .HasColumnType("varchar(50)"); + + b.Property("RecordNumber") + .HasColumnType("int"); + + b.Property("RoundNumber") + .HasColumnType("int"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.HasKey("Id"); + + b.HasIndex("ProductLine") + .IsUnique() + .HasFilter("[ProductLine] IS NOT NULL"); + + b.ToTable("FisBillNumberRecord"); + }); + modelBuilder.Entity("WY.NewJit.MsgCheck.BillR100", b => { b.Property("Id") @@ -5229,6 +5417,136 @@ namespace WY.NewJit.Migrations b.ToTable("FisTransmissionModeCfg"); }); + modelBuilder.Entity("WY.NewJit.PrintTable.AlreadyPrint", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("AssemblyID") + .HasColumnType("uniqueidentifier"); + + b.Property("BillStatus") + .HasColumnType("int"); + + b.Property("BusinessType") + .HasColumnType("int"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorId") + .HasColumnType("uniqueidentifier"); + + b.Property("Description") + .HasColumnType("nvarchar(max)"); + + b.Property("HostSN") + .HasColumnType("int"); + + b.Property("HostSN2") + .HasColumnType("int"); + + b.Property("KNR") + .HasColumnType("nvarchar(max)"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2"); + + b.Property("LastModifierId") + .HasColumnType("uniqueidentifier"); + + b.Property("M100Id") + .HasColumnType("uniqueidentifier"); + + b.Property("OnlineTime") + .HasColumnType("datetime2"); + + b.Property("PrintType") + .HasColumnType("int"); + + b.Property("ProductLine") + .HasColumnType("nvarchar(max)"); + + b.Property("ReceiveTime") + .HasColumnType("datetime2"); + + b.Property("VIN") + .HasColumnType("nvarchar(max)"); + + b.Property("VehicleModelCode") + .HasColumnType("nvarchar(max)"); + + b.HasKey("Id"); + + b.ToTable("FisAlreadyPrint"); + }); + + modelBuilder.Entity("WY.NewJit.PrintTable.WaitPrint", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("AssemblyID") + .HasColumnType("uniqueidentifier"); + + b.Property("BillStatus") + .HasColumnType("int"); + + b.Property("BusinessType") + .HasColumnType("int"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CreatorId") + .HasColumnType("uniqueidentifier"); + + b.Property("Description") + .HasColumnType("nvarchar(max)"); + + b.Property("HostSN") + .HasColumnType("int"); + + b.Property("HostSN2") + .HasColumnType("int"); + + b.Property("KNR") + .HasColumnType("nvarchar(max)"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2"); + + b.Property("LastModifierId") + .HasColumnType("uniqueidentifier"); + + b.Property("M100Id") + .HasColumnType("uniqueidentifier"); + + b.Property("OnlineTime") + .HasColumnType("datetime2"); + + b.Property("PrintType") + .HasColumnType("int"); + + b.Property("ProductLine") + .HasColumnType("nvarchar(max)"); + + b.Property("ReceiveTime") + .HasColumnType("datetime2"); + + b.Property("VIN") + .HasColumnType("nvarchar(max)"); + + b.Property("VehicleModelCode") + .HasColumnType("nvarchar(max)"); + + b.HasKey("Id"); + + b.ToTable("FisWaitPrint"); + }); + modelBuilder.Entity("WY.NewJit.TianHe.NotMatchTempBill", b => { b.Property("Id") diff --git a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/WY.NewJit.EntityFrameworkCore.DbMigrations.csproj b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/WY.NewJit.EntityFrameworkCore.DbMigrations.csproj index 87f3950..c60b959 100644 --- a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/WY.NewJit.EntityFrameworkCore.DbMigrations.csproj +++ b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/WY.NewJit.EntityFrameworkCore.DbMigrations.csproj @@ -18,8 +18,4 @@ - - - - diff --git a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore/EntityFrameworkCore/NewJitDbContext.cs b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore/EntityFrameworkCore/NewJitDbContext.cs index cae5509..d08d321 100644 --- a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore/EntityFrameworkCore/NewJitDbContext.cs +++ b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore/EntityFrameworkCore/NewJitDbContext.cs @@ -17,6 +17,7 @@ using WY.NewJit.Commons; using WY.NewJit.Extends.PaiGe.WMS; using WY.NewJit.MsgBaseData.Entitys; using WY.NewJit.PrintTable; +using WY.NewJit.EdiReceive.Entitys; namespace WY.NewJit.EntityFrameworkCore { @@ -152,6 +153,15 @@ namespace WY.NewJit.EntityFrameworkCore public DbSet already_print { get; set; } #endregion + #region 派格红旗报文接收 + public DbSet ImportRecords { get; set; } + + public DbSet ImportRecordHis { get; set; } + + public DbSet LastImportHostSN { get; set; } + + #endregion + /* Add DbSet properties for your Aggregate Roots / Entities here. * Also map them inside NewJitDbContextModelCreatingExtensions.ConfigureNewJit */ diff --git a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore/EntityFrameworkCore/NewJitDbContextModelCreatingExtensions.cs b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore/EntityFrameworkCore/NewJitDbContextModelCreatingExtensions.cs index 130fb8f..85a6c0e 100644 --- a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore/EntityFrameworkCore/NewJitDbContextModelCreatingExtensions.cs +++ b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore/EntityFrameworkCore/NewJitDbContextModelCreatingExtensions.cs @@ -3,6 +3,7 @@ using Volo.Abp; using Volo.Abp.EntityFrameworkCore.Modeling; using WY.NewJit.Books; using WY.NewJit.Commons; +using WY.NewJit.EdiReceive.Entitys; using WY.NewJit.Extends; using WY.NewJit.Extends.PaiGe; using WY.NewJit.Extends.PaiGe.WMS; @@ -600,6 +601,88 @@ namespace WY.NewJit.EntityFrameworkCore b.ConfigureByConvention();//配置/映射继承的属性,应始终对你所有的实体使用它 }); #endregion + + #region 派格红旗报文接收 + builder.Entity(b => + { + b.ToTable(NewJitConsts.DbTablePrefix + nameof(ImportRecord)); + b.ConfigureByConvention();//配置/映射继承的属性,应始终对你所有的实体使用它 + b.Property(itm => itm.Factory).HasColumnType("varchar").HasMaxLength(50); + b.Property(itm => itm.VehicleLocation).HasColumnType("varchar").HasMaxLength(50); + b.Property(itm => itm.WorkLocation).HasColumnType("varchar").HasMaxLength(50); + b.Property(itm => itm.Vin).HasColumnType("varchar").HasMaxLength(50); + b.Property(itm => itm.VehicleBodyCode).HasColumnType("varchar").HasMaxLength(50); + b.Property(itm => itm.VehicleModelCode).HasColumnType("varchar").HasMaxLength(50); + b.Property(itm => itm.VehicleModelName).HasColumnType("nvarchar").HasMaxLength(200); + b.Property(itm => itm.VehicleModelDesc).HasColumnType("nvarchar").HasMaxLength(200); + b.Property(itm => itm.Spec).HasColumnType("varchar").HasMaxLength(50); + b.Property(itm => itm.SpecDesc).HasColumnType("nvarchar").HasMaxLength(200); + b.Property(itm => itm.Type).HasColumnType("varchar").HasMaxLength(50); + b.Property(itm => itm.PaintOfflineTime).HasColumnType("datetime"); + b.Property(itm => itm.OnlineTime).HasColumnType("datetime"); + b.Property(itm => itm.InteriorColor).HasColumnType("varchar").HasMaxLength(50); + b.Property(itm => itm.ExteriorTrimmingColor).HasColumnType("varchar").HasMaxLength(50); + b.Property(itm => itm.SerialNum).HasColumnType("varchar").HasMaxLength(50); + b.Property(itm => itm.HostSN).HasColumnType("int"); + b.Property(itm => itm.ProductLine).HasColumnType("varchar").HasMaxLength(50); + b.Property(itm => itm.Target).HasColumnType("nvarchar").HasMaxLength(200); + b.Property(itm => itm.Remark).HasColumnType("varchar").HasMaxLength(200); + b.Property(itm => itm.CreateTime).HasColumnType("datetime2"); + b.Property(itm => itm.CreatePerson).HasColumnType("varchar").HasMaxLength(50); + b.Property(itm => itm.ImportTime).HasColumnType("datetime2").HasMaxLength(50); + b.Property(itm => itm.ImportPerson).HasColumnType("varchar").HasMaxLength(50); + //b.HasIndex(itm => itm.HostSN).HasDatabaseName("IX_ImportRec_HostSN"); + b.Property(itm => itm.Remark2).HasColumnType("varchar").HasMaxLength(200); + b.Property(itm => itm.Remark3).HasColumnType("varchar").HasMaxLength(200); + b.Property(itm => itm.Remark4).HasColumnType("varchar").HasMaxLength(200); + b.Property(itm => itm.Remark5).HasColumnType("varchar").HasMaxLength(200); + }); + + builder.Entity(b => + { + b.ToTable(NewJitConsts.DbTablePrefix + nameof(ImportRecordHis)); + b.ConfigureByConvention();//配置/映射继承的属性,应始终对你所有的实体使用它 + b.Property(itm => itm.Factory).HasColumnType("varchar").HasMaxLength(50); + b.Property(itm => itm.VehicleLocation).HasColumnType("varchar").HasMaxLength(50); + b.Property(itm => itm.WorkLocation).HasColumnType("varchar").HasMaxLength(50); + b.Property(itm => itm.Vin).HasColumnType("varchar").HasMaxLength(50); + b.Property(itm => itm.VehicleBodyCode).HasColumnType("varchar").HasMaxLength(50); + b.Property(itm => itm.VehicleModelCode).HasColumnType("varchar").HasMaxLength(50); + b.Property(itm => itm.VehicleModelName).HasColumnType("nvarchar").HasMaxLength(200); + b.Property(itm => itm.VehicleModelDesc).HasColumnType("nvarchar").HasMaxLength(200); + b.Property(itm => itm.Spec).HasColumnType("varchar").HasMaxLength(50); + b.Property(itm => itm.SpecDesc).HasColumnType("nvarchar").HasMaxLength(200); + b.Property(itm => itm.Type).HasColumnType("varchar").HasMaxLength(50); + b.Property(itm => itm.PaintOfflineTime).HasColumnType("datetime"); + b.Property(itm => itm.OnlineTime).HasColumnType("datetime"); + b.Property(itm => itm.InteriorColor).HasColumnType("varchar").HasMaxLength(50); + b.Property(itm => itm.ExteriorTrimmingColor).HasColumnType("varchar").HasMaxLength(50); + b.Property(itm => itm.SerialNum).HasColumnType("varchar").HasMaxLength(50); + b.Property(itm => itm.HostSN).HasColumnType("int"); + b.Property(itm => itm.ProductLine).HasColumnType("varchar").HasMaxLength(50); + b.Property(itm => itm.Target).HasColumnType("nvarchar").HasMaxLength(200); + b.Property(itm => itm.Remark).HasColumnType("varchar").HasMaxLength(200); + b.Property(itm => itm.CreateTime).HasColumnType("datetime2"); + b.Property(itm => itm.CreatePerson).HasColumnType("varchar").HasMaxLength(50); + b.Property(itm => itm.ImportTime).HasColumnType("datetime2").HasMaxLength(50); + b.Property(itm => itm.ImportPerson).HasColumnType("varchar").HasMaxLength(50); + b.HasIndex(itm => itm.HostSN).HasDatabaseName("IX_ImportRecHis_HostSN"); + b.Property(itm => itm.Remark2).HasColumnType("varchar").HasMaxLength(200); + b.Property(itm => itm.Remark3).HasColumnType("varchar").HasMaxLength(200); + b.Property(itm => itm.Remark4).HasColumnType("varchar").HasMaxLength(200); + b.Property(itm => itm.Remark5).HasColumnType("varchar").HasMaxLength(200); + }); + + builder.Entity(b => + { + b.ToTable(NewJitConsts.DbTablePrefix + nameof(LastImportHostSN)); + b.ConfigureByConvention();//配置/映射继承的属性,应始终对你所有的实体使用它 + b.Property(itm => itm.ProductLineCode).HasColumnType("varchar").HasMaxLength(50); + b.Property(itm => itm.HostSN).HasColumnType("int"); + }); + + + #endregion } } } \ No newline at end of file diff --git a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Job.ConsoleSyncToWms/appsettings.json b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Job.ConsoleSyncToWms/appsettings.json index 5a33c35..dce7525 100644 --- a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Job.ConsoleSyncToWms/appsettings.json +++ b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Job.ConsoleSyncToWms/appsettings.json @@ -20,7 +20,7 @@ "Default": "Server=dev.ccwin-in.com,6208;Database=NewJitPG_HQ;uid=sa;pwd=ChangkeTec@2021;", "ABP": "Server=dev.ccwin-in.com,6208;Database=ABP;User ID=sa;Password=ChangkeTec@2021;", "WMS": "Server=dev.ccwin-in.com,6208;Database=CPAT_WMS;User ID=sa;Password=ChangkeTec@2021;" - //"Default": "Server=192.168.0.228;Database=NewJitPG_HQ;uid=sa;pwd=ChangkeTec@2021;", + //"Default": "Server=192.168.0.228;Database=NewJitPG_HQ_Temp;uid=sa;pwd=ChangkeTec@2021;", //"ABP": "Server=192.168.0.228;Database=ABP;User ID=sa;Password=ChangkeTec@2021;", //"WMS": "Server=192.168.0.228;Database=CPAT_WMS;User ID=sa;Password=ChangkeTec@2021;"